|
|
|
Re: how to define a source node and a target node in emf [message #1708559 is a reply to message #1708541] |
Thu, 17 September 2015 12:57 |
Ed Willink Messages: 7670 Registered: July 2009 |
Senior Member |
|
|
Hi
What's the problem with a straightforward sparse encoding.
class Node {
reference nextNodes : Node[*];
}
initialized as
node1.nextNodes = {node2,node3};
node2.nextNodes = {};
node3.nextNodes = {node1,node4,node6};
node4.nextNodes = {node1};
node5.nextNodes = {node3,node5};
node6.nextNodes = {node2,node4,node5};
Regards
Ed Willink
On 17/09/2015 12:32, sonnia anderson wrote:
> hello
> here is an example matrix below, the edge must determine the direction that is to say the first node to the second node, the first node to the third and sixth or the first node to the second {(1,2) (1 , 3)} or {(1.2) (6.2)}. in my case the number of nodes is not fixed his may vary (that is undefined)
>
> the problem is that I do not know how directions ((1.2) (6.2))
> thanks you in advance
> sonnia
|
|
|
Powered by
FUDForum. Page generated in 0.03275 seconds