Permalink
Browse files

small tweak to g.v()

  • Loading branch information...
1 parent d338663 commit 7e3ef9fac37a62ed5241288aa37731f75715a566 @okram okram committed Apr 30, 2012
@@ -41,7 +41,7 @@ class GraphLoader {
return ((Graph) delegate).getVertex(ids[0]);
else {
final Graph g = (Graph) delegate;
- final List vertices = new LinkedList();
+ final List vertices = new ArrayList();
ids.each {vertices.add(g.getVertex(it))};
return vertices;
}
@@ -52,7 +52,7 @@ class GraphLoader {
return ((Graph) delegate).getEdge(ids[0]);
else {
final Graph g = (Graph) delegate;
- final List edges = new LinkedList();
+ final List edges = new ArrayList();
ids.each {edges.add(g.getEdge(it))};
return edges;
}

0 comments on commit 7e3ef9f

Please sign in to comment.