Permalink
Browse files

Merge pull request #14 from adelbertc/master

Pull request for graph/SynchronizedDynamicGraph.scala
  • Loading branch information...
2 parents 1df5f72 + 30b0bb4 commit c23828086ca4378fbd02a9ca1705d90029833c0d @pankajgupta pankajgupta committed Jul 3, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/main/scala/com/twitter/cassovary/graph/SynchronizedDynamicGraph.scala
@@ -20,8 +20,7 @@ import StoredGraphDir._
* A class support dynamically adds new nodes and dynamically add/delete edges in existing nodes.
* It currently doesn't support delete nodes
*/
-class SynchronizedDynamicGraph(val graphDir: StoredGraphDir)
+class SynchronizedDynamicGraph(val graphDir: StoredGraphDir = BothInOut)
extends DynamicDirectedGraphHashMap(graphDir) {
- def this() = this(BothInOut)
- def nodeFactory(id: Int) = new SynchronizedDynamicNode(id)
+ override def nodeFactory(id: Int) = new SynchronizedDynamicNode(id)
}

0 comments on commit c238280

Please sign in to comment.