Conditions | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from abc import ABCMeta, abstractmethod |
||
25 | def __init__(self, G, s): |
||
26 | if isinstance(G, EdgeWeightedGraph): |
||
27 | G = G.to_graph() |
||
28 | self.s = s |
||
29 | vertex_count = G.vertex_count() |
||
30 | self.marked = [False] * vertex_count |
||
31 | self.edgesTo = [-1] * vertex_count |
||
32 | self.dfs(G, s) |
||
33 | |||
89 | return path.iterate() |