Concatenating graphs

Questions about Anatomist manipulation

Moderators: denghien, riviere

Post Reply
User avatar
Olivier Coulon
Posts: 176
Joined: Fri Feb 27, 2004 11:48 am
Location: MeCA research group, Institut de Neurosciences de La Timone, Marseille, France
Contact:

Concatenating graphs

Post by Olivier Coulon »

Hello there,
is there a straightforward way to concatenate two graphs ? I don't want to add any edge, I just want all the nodes to end up in a single graph and the existing edges to be maintained...

Thanks,

Olivier
Olivier Coulon
Institut de Neurosciences de La Timone,
Aix-Marseille Université,
Marseille, france
https://meca-brain.org
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

Yes, you can use Graph::extract()
(it will copy nodes, and relations between them)
Denis
Post Reply