File:Lowest common ancestor.svg

Summary

Description
English: A tree with the common ancestors of two nodes in light green, and their lowest common ancestor in dark green.
Date
Source Own work
Author Qwertyus
SVG development
InfoField
 The SVG code is valid.
 This chart was created with Graphviz.
Category:Valid SVG created with Graphviz#Lowest%20common%20ancestor.svg
 Category:Translation possible - SVGThis file uses embedded text that can be easily translated using a text editor.

Licensing

Qwertyus, the copyright holder of this work, hereby publishes it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
Attribution:
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-4.0#Lowest%20common%20ancestor.svgCategory:Self-published work

Source code

Graphviz (Q260889) – This Wikidata item has no property P154 (logo). Click here to edit the Wikidata item
Graphviz (Q260889) This Wikidata item has no property P154 (logo). Click here to edit the Wikidata item
This media was created with Graphviz (graph visualization software)Category:Images with Graphviz source code
Here is a listing of the source used to create this file.

Deutsch  English  +/− This picture was produced by dot from the following source code:

digraph {
    rankdir=BT;

    node [label="B"]; x;
    node [label="A"]; y;

    node [label=""]; x; f; z;
    node [style=filled,color=darkgreen]; lca;
    node [style=filled,color=lightgreen]; a, w;

    x -> lca;

    y -> f;
    f -> lca;
    lca -> a;
    a -> w;
    z -> w;
}
Category:Graph algorithms Category:Tree (graph theory)
Category:CC-BY-SA-4.0 Category:Graph algorithms Category:Images with Graphviz source code Category:Self-published work Category:Translation possible - SVG Category:Tree (graph theory) Category:Valid SVG created with Graphviz