Hi

Graph Tool looks like a great comprehensive library. I am very new to it and
sorry, in advance, if this question or something similar has been answered
before. I had a good search and couldn't find a solution.

I am creating directed graphs and would like to search those graphs for
subgraphs that have corresponding labels on their vertices and edges. I then
would like to cut those subgraphs out, potentially make additional copies,
then paste those subgraphs attached by edges to different vertices of the
remain graph.

So for example in the following code:



I would like to take subgraphs of g1 that match h including edge labels. I
know i can find these subgraphs using:



I then might like to paste that subgraph in a way to create a new graph g2
that might look like:



Please ignore the the fact I have used multiple calls to add_edge_list() to
generate these example graphs. This is just an artifact of creating the
above example. In my real use case I will just be presented with a random
vertex/edge labelled graph.

Is there any recommended way to do this?

Thanks
Blair



--
View this message in context: 
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/copy-cut-and-paste-of-subgraphs-tp4027292.html
Sent from the Main discussion list for the graph-tool project mailing list 
archive at Nabble.com.
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to