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 | Category:Valid SVG created with Graphviz#Lowest%20common%20ancestor.svg |
Licensing
Qwertyus, the copyright holder of this work, hereby publishes it under the following license:
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.
Source code

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.
Here is a listing of the source used to create this file.
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;
}