How to attach edge to nodes group ?

Hi

How to attach edge to nodes group in my class extended from GraphDataModel? I can't create edge from node to nodes group directly using Open API but yFiles has same diagram http://yfiles.com/products/yfiles/doc/api/y/layout/hierarchic/HierarchicGroupLayouter.html

I have an issue with laoyter. I can explain in more details.
1. create nodes.
2. create edges
3. return nodes group for several nodes.
4. build diagram
5. You can see that group covers some nodes which were not included.
I think that diagram should not display these nodes.

4 comments
Comment actions Permalink

Hi,

It's very easy to use nodes group.
You schould implement "public NodesGroup getGroup(N n)" of GraphDataModel(Simple
implementation of NodesGroup is BasicNodesGroup).

Please, have a look to "nodes group" implementation at Spring plugin(com.intellij.spring.perspectives.graph.SpringBeanDependenciesDataModel).


Serega.

Hi

How to attach edge to nodes group in my class extended from
GraphDataModel? I can't create edge from node to nodes group directly
using Open API but yFiles has same diagram
http://yfiles.com/products/yfiles/doc/api/y/layout/hierarchic/Hierarch
icGroupLayouter.html

I have an issue with laoyter. I can explain in more details.
1. create nodes.
2. create edges
3. return nodes group for several nodes.
4. build diagram
5. You can see that group covers some nodes which were not included.
I think that diagram should not display these nodes.



0
Comment actions Permalink

Hi

I look Spring plugin but it not resolve my problem. Because I want create edge from one node to nodes group (not other node).
I can explain in more details:
1. Create nodes with name 1, 2, 3, 4, 5, 6
2. Create groups A with nodes 2, 3 and B with nodes 4, 5
3. Create edge from 1 to 2 (is ok), from 2 to 3 (is ok), from 4 to 5 (is ok), from 5 to 6 (is ok)
4. And my problem because i can't create edge from 1 to B, from 3 to B, and from 5 to A

Please help me how to create edge from node 1 to group B (not node in this groups)

Oleg

Hi,

It's very easy to use nodes group.
You schould implement "public NodesGroup getGroup(N
n)" of GraphDataModel(Simple
implementation of NodesGroup is BasicNodesGroup).

Please, have a look to "nodes group" implementation
at Spring
plugin(com.intellij.spring.perspectives.graph.SpringBe
anDependenciesDataModel).


Serega.

>

0
Comment actions Permalink

Oleg,

This types of edges aren't supported in Idea's graph api. And I think graph
api won't be totally changed before Selena release.
I could add a bit of functionality in graph api if you need that.

for example, add in GraphBuilder method : public void addCustomUpdaters(CustomUpdater
ca);

interface CustomUpdater {
update(Graph graph, View view)
}

and invoke update() methods after building of graph model.

In that case, you should manually add specific edges in graph and validate
their consistency.

Anyway, I'm checking graph api to find more proper fix.

p.s.
Out of curiosity, what type of graph do you develop?

Serega

Hi

I look Spring plugin but it not resolve my problem. Because I want
create edge from one node to nodes group (not other node).

I can explain in more details:

1. Create nodes with name 1, 2, 3, 4, 5, 6

2. Create groups A with nodes 2, 3 and B with nodes 4, 5

3. Create edge from 1 to 2 (is ok), from 2 to 3 (is ok), from 4 to 5
(is ok), from 5 to 6 (is ok)

4. And my problem because i can't create edge from 1 to B, from 3 to
B, and from 5 to A

Please help me how to create edge from node 1 to group B (not node in
this groups)

Oleg

>> Hi,
>>
>> It's very easy to use nodes group.
>> You schould implement "public NodesGroup getGroup(N
>> n)" of GraphDataModel(Simple
>> implementation of NodesGroup is BasicNodesGroup).
>> Please, have a look to "nodes group" implementation at Spring
>> plugin(com.intellij.spring.perspectives.graph.SpringBe
>> anDependenciesDataModel).
>>
>> Serega.
>>


0
Comment actions Permalink

Sergey,

Ok thank you for this workaround it will be helpful. I will be wait.

Oleg,

This types of edges aren't supported in Idea's graph
api. And I think graph
api won't be totally changed before Selena release.
I could add a bit of functionality in graph api if
you need that.

for example, add in GraphBuilder method : public void
addCustomUpdaters(CustomUpdater
ca);

interface CustomUpdater {
update(Graph graph, View view)
nd invoke update() methods after building of graph
model.

In that case, you should manually add specific edges
in graph and validate
their consistency.

Anyway, I'm checking graph api to find more proper
fix.

p.s.
Out of curiosity, what type of graph do you develop?


We are developing custom system based on JBPM http://www.jboss.com/products/jbpm
I can't create transition between "task node" and "super state" (which contains other task nodes, decisions etc) on diagram.

Oleg

0

Please sign in to leave a comment.