I have got a graph with nodes that were already laid out by an algorithm that was not part of JGraph.

\n

How is it possible to apply a global edge routing algorithm from JGraph that does not touch the node positions and sizes? I have already copied the nodes and edges into a graph object.

asked 25 Nov '11, 04:16

zord's gravatar image

zord
34
accept rate: 0%

edited 25 Nov '11, 04:17


Didn't test this, but have you tried overriding mxGraphLayout.isVertexMovable to return false while returning true in isVertexIgnored?

link

answered 25 Nov '11, 22:56

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

I found another solution in the meantime. Apparently, just loading the vertex data and edge (source, dest) information into JGraph and then reading it from there results in proper edge routing, without applying a layout.

(29 Nov '11, 07:05) zord
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×194
×100
×28
×9

Asked: 25 Nov '11, 04:16

Seen: 2,398 times

Last updated: 29 Nov '11, 07:05