EX09 Task1

tz33quvu
Windoof-User
Windoof-User
Beiträge: 40
Registriert: 29. Jan 2017 09:26

EX09 Task1

Beitrag von tz33quvu » 20. Jan 2018 11:33

Hi everyone,

1)Should each node maintain a list of parents? That means a node N1 can be firstly added into an edge E1, and then both N1 and E1 is added to a composite called C1, should we set N1's parent like List(E1,C1) or just C1?

2)what does getSize actually do?

3)What is the position of a compositeGraphElement? Always (0,0) if we apply circleLayouter?

Thx!

meichholz
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 167
Registriert: 30. Mär 2016 08:28

Re: EX09 Task1

Beitrag von meichholz » 22. Jan 2018 11:05

Hi,
tz33quvu hat geschrieben:
20. Jan 2018 11:33
1) Should each node maintain a list of parents? That means a node N1 can be firstly added into an edge E1, and then both N1 and E1 is added to a composite called C1, should we set N1's parent like List(E1,C1) or just C1?
This is one possible solution, however, this solution requires that the list of parents stays consistent when removing edges. Alternatively, you could also keep track of the direct parent.
tz33quvu hat geschrieben:
20. Jan 2018 11:33
2) what does getSize actually do?
This was already discussed in another thread, please have a look there.
tz33quvu hat geschrieben:
20. Jan 2018 11:33
3)What is the position of a compositeGraphElement? Always (0,0) if we apply circleLayouter?
You can use (0,0) if your composite graph is the top-level element. However, if you have nested composite graphs, you need to calculate its position accordingly.

Best,
Matthias

Antworten

Zurück zu „Archiv“