[jgrapht-users] Change Edge Labels
Brought to you by:
barak_naveh,
perfecthash
From: <fa...@gm...> - 2008-12-29 21:21:20
|
hi is there a way to change the edge labels? i create my graph like in the JGraphAdapter Demo: > ListenableGraph<String, DefaultEdge> g = > new ListenableDirectedMultigraph<String, DefaultEdge>( > DefaultEdge.class); > > jgAdapter = new JGraphModelAdapter<String, DefaultEdge>(g); > > JGraph jgraph = new JGraph(jgAdapter); > > ... > > String v1 = "v1"; > String v1 = "v2"; > > g.addVertex(v1); > g.addVertex(v2); > > g.addEdge(v1, v2); the edge is labeled with "v1, v2" but i'd like to set another text as label. regards daniel |