Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: tools/android/loading/graph.py

Issue 1837193002: Clovis: update resource sack to use new dependency graph. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/android/loading/dependency_graph.py ('k') | tools/android/loading/resource_sack.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/loading/graph.py
diff --git a/tools/android/loading/graph.py b/tools/android/loading/graph.py
index a665439313d0b0d8abd1e81019c245ef80b0026d..789d917be64698d77a480073210e6d3cbc04b777 100644
--- a/tools/android/loading/graph.py
+++ b/tools/android/loading/graph.py
@@ -43,15 +43,15 @@ class DirectedGraph(object):
Note that the edges referencing a node not in the provided list are dropped.
Args:
- nodes: ([Node]) List of nodes.
- edges: ([Edge]) List of Edges.
+ nodes: ([Node]) Sequence of Nodes.
+ edges: ([Edge]) Sequence of Edges.
"""
- assert all(isinstance(node, Node) for node in nodes)
- assert all(isinstance(edge, Edge) for edge in edges)
self._nodes = set(nodes)
self._edges = set(filter(
lambda e: e.from_node in self._nodes and e.to_node in self._nodes,
edges))
+ assert all(isinstance(node, Node) for node in self._nodes)
+ assert all(isinstance(edge, Edge) for edge in self._edges)
self._in_edges = {n: [] for n in self._nodes}
self._out_edges = {n: [] for n in self._nodes}
for edge in self._edges:
« no previous file with comments | « tools/android/loading/dependency_graph.py ('k') | tools/android/loading/resource_sack.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698