KCC: docstring for kcc.graph.InternalEdge
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 8 May 2015 02:53:41 +0000 (14:53 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 12 Jun 2015 04:57:17 +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 d47d2f80c6ff522106f99c14bffee1a06ca3fe68..daea4915278f99cb9011e1fcc57fc73b92ce679a 100644 (file)
@@ -803,6 +803,12 @@ class MultiEdge(object):
 
 
 class InternalEdge(object):
+    """An edge that forms part of the minimal spanning tree
+
+    These are used in the Kruskal's algorithm. Their interesting
+    feature isa that they are sortable, with the good edges sorting
+    before the bad ones -- lower is better.
+    """
     def __init__(self, v1, v2, redred, repl, eType, site_link):
         self.v1 = v1
         self.v2 = v2