diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2015-05-07 14:06:09 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-06-12 06:57:16 +0200 |
commit | a0fea23811601bf8ecc07017c2e28ac811b1d1bd (patch) | |
tree | f491f3dd77ff2c89179a1f17719fc8603d873821 /python | |
parent | aeda7f4c61105bdda8d1d1a35c8c55858054d0bc (diff) | |
download | samba-a0fea23811601bf8ecc07017c2e28ac811b1d1bd.tar.gz |
KCC: Add graph.setup_vertices() docstring
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>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/kcc/graph.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |