Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Weird routing on branches between nodes (Read 1633 times)
m0uze
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 12th, 2008
Weird routing on branches between nodes
Nov 27th, 2008 at 10:06pm
Print Post  
We are using JDiagram in our web application for building fault trees. Below is an image of a generated tree. In level 1, you can see that the branches diverge from one common point. That works well, but then the branches under "What is the condition of the oil differential pressure transducer?" diverge in different places, and even jump over each other unnecessarily. How come the branches are so clean in one case and not clean in the other?

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Weird routing on branches between nodes
Reply #1 - Nov 28th, 2008 at 8:54am
Print Post  
The TreeLayout really expects a tree, where each vertex in the graph has at most one parent. As a post-processing step you could iterate over all nodes that have more than one incoming links, and for each such node iterate over its incoming links and call their route() method.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint