diff options
| author | Jack Koenig | 2018-07-11 12:39:52 -0700 |
|---|---|---|
| committer | GitHub | 2018-07-11 12:39:52 -0700 |
| commit | 897dad039a12a49b3c4ae833fbf0d02087b26ed5 (patch) | |
| tree | 3d2896160d8f929c9f47a04eb7c236be2b1d002d /src/main/scala/firrtl/graph | |
| parent | 17437907de4ad12eb3f8d0818a158eb6959591a3 (diff) | |
Make InstanceGraph have deterministic and use defined iteration order (#843)
Diffstat (limited to 'src/main/scala/firrtl/graph')
| -rw-r--r-- | src/main/scala/firrtl/graph/DiGraph.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/graph/DiGraph.scala b/src/main/scala/firrtl/graph/DiGraph.scala index 4b900be4..1d15d505 100644 --- a/src/main/scala/firrtl/graph/DiGraph.scala +++ b/src/main/scala/firrtl/graph/DiGraph.scala @@ -263,7 +263,7 @@ class DiGraph[T] private[graph] (private[graph] val edges: LinkedHashMap[T, Link * @param start the node to start at * @return a Map[T,Seq[Seq[T]]] where the value associated with v is the Seq of all paths from start to v */ - def pathsInDAG(start: T): Map[T,Seq[Seq[T]]] = { + def pathsInDAG(start: T): LinkedHashMap[T,Seq[Seq[T]]] = { // paths(v) holds the set of paths from start to v val paths = new LinkedHashMap[T, mutable.Set[Seq[T]]] val queue = new mutable.Queue[T] |
