What the question states.I have many arrows connecting to one Node and it looks very cluttered on the graph. Any way to relocate the arrows towards the center or remove them ?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Changed the type of the graph From DirectedSparseMultigraph to SparseMultigraph and fixed the issue I was having.
By default, directed edges are rendered with arrowheads on them so that you can see the direction of the edge.
If you don't want the arrowheads to be present at all:
If you want the arrowheads to be present, but rendered in the middle of their respective edges instead of at their target:
If you want to use a different edge shape that shows the edge direction differently:
Finally, if you don't want directed edges, then you can use an undirected graph. (The edges of
SparseMultigraph
are undirected by default.)These capabilities are demonstrated in PluggableRendererDemo, which is one of the samples available as part of the JUNG distribution. Note that these APIs are accurate for JUNG 2.1.*, but some things will be changing for the upcoming 3.0 release.