Page 1 of 1

how to generate graph ?

Posted: Sat Mar 21, 2020 7:58 am
by kimiya
Hi,
How do I create a graph like this?
image.png
2 Nodes whose color is different, Differs from other nodes.

thanks.

Re: how to generate graph ?

Posted: Sat Mar 21, 2020 8:32 am
by Renger
Hi

You could start with the techniques used in the following two models from the GAMS model library:
- Triangular Graph Circle Packing (TRICP,SEQ=395)
- Traffic Equilibrium Problem (TRAFFIC,SEQ=169)
In these models graphs are defined using mappings. (see here in the documentation.

Cheers
Renger