Path Formular
Example
Based on the diagram 1, the red color (dots) that has been labeled is representing the nodes, while the normal black color (line) is representing edges.How to calculate
- Identify and total up the nodes. N = 6 nodes.
- Next identify and total up the edges. E = 8 edges/paths.
- Apply the formular.
CC = E - N + 2
CC = 8 - 6 + 2
CC = 4.
How to find Length( Path )
Based on the diagram 1, we can find path at 4 or more length.
Path with 4 length:-
- A - I
- A - B - C - D
- A -B - X -D
- A - C ...
_________________
- A - B - C - D - I
- A ....
The path that has been selected can't be taken twice. So we will add the next path as (...), for example path(length) at no 4.
If 'A' has been chosen as the first starting point, the next path(length) also need to start with 'A'.

No comments:
Post a Comment