KCC: docstring for kcc.graph.add_edge_out()
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 8 May 2015 02:52:27 +0000 (14:52 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 12 Jun 2015 04:57:16 +0000 (06:57 +0200)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/kcc/graph.py

index 12956ae9e2e3253cf0dc4dd5069f11472489fd57..7e601a42de7c33889a430698d9819d245c94c82d 100644 (file)
@@ -625,10 +625,21 @@ def find_component(vertex):
 
 
 def add_out_edge(graph, output_edges, e):
+    """Kruskal helper to add output edges
+
+    :param graph: the InterSiteGraph
+    :param output_edges: the list of spanning tree edges
+    :param e: the edge to be added
+    :return: None
+    """
     v1 = e.v1
     v2 = e.v2
 
-    # This multi-edge is a 'real' edge with no GUID
+    # This multi-edge is a 'real' undirected 2-vertex edge with no
+    # GUID. XXX It is not really the same thing at all as the
+    # multi-vertex edges relating to site-links. We shouldn't really
+    # be using the same class or storing them in the same list as the
+    # other ones. But we do. Historical reasons.
     ee = MultiEdge()
     ee.directed = False
     ee.site_link = e.site_link