From a0fea23811601bf8ecc07017c2e28ac811b1d1bd Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 7 May 2015 14:06:09 +1200 Subject: KCC: Add graph.setup_vertices() docstring Signed-off-by: Douglas Bagnall Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- python/samba/kcc/graph.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python') diff --git a/python/samba/kcc/graph.py b/python/samba/kcc/graph.py index 6eb443452b2..a005c59c7f3 100644 --- a/python/samba/kcc/graph.py +++ b/python/samba/kcc/graph.py @@ -324,6 +324,11 @@ def create_edge_set(graph, transport, site_link_bridge): def setup_vertices(graph): + """Initialise vertices in the graph for the Dijkstra's run. + + :param graph: an IntersiteGraph object + :return: None + """ for v in graph.vertices: if v.is_white(): v.repl_info.cost = MAX_DWORD -- cgit v1.2.1