usesRenderer = new EdgeRenderer( Constants.EDGE_TYPE_CURVE, Constants.EDGE_ARROW_FORWARD );
Predicate edgesPredicate = (Predicate) ExpressionParser.parse( "ingroup('graph.edges') AND [" + USES_EDGES + "]==false", true );
Predicate usesPredicate = (Predicate) ExpressionParser.parse( "ingroup('graph.edges') AND [" + USES_EDGES + "]==true", true );
DefaultRendererFactory rf = new DefaultRendererFactory( nodeRenderer );
rf.add( edgesPredicate, edgeRenderer );
rf.add( usesPredicate, usesRenderer );
m_vis.setRendererFactory( rf );
// colors
ItemAction nodeColor = new NodeColorAction( GRAPH_NODES );
ItemAction textColor = new ColorAction( GRAPH_NODES, VisualItem.TEXTCOLOR, ColorLib.rgb( 0, 0, 0 ) );