Skip to content

Commit

Permalink
tuples of graph's node table as node proxy tuples
Browse files Browse the repository at this point in the history
If a graph's or tree's tuples are accessed they are returned as
TableTuple but should be TablesNodes, so that expressions like
TREEDEPTH() work (cp. #34).
  • Loading branch information
alex-rind committed Jul 2, 2019
1 parent e3a1182 commit 889ad9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/prefuse/data/Graph.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,10 @@ protected void init(Table nodes, Table edges, boolean directed,
}

// set up tuple manager
if ( m_nodeTuples == null )
if ( m_nodeTuples == null ) {
m_nodeTuples = new TupleManager(nodes, this, TableNode.class);
nodes.setTupleManager(m_nodeTuples);
}
m_edgeTuples = new TupleManager(edges, this, TableEdge.class);

// set up node attribute optimization
Expand Down

0 comments on commit 889ad9e

Please sign in to comment.