mark_subgraph#
- graph_tool.topology.mark_subgraph(g, sub, vmap, vmask=None, emask=None)[source]#
Mark a given subgraph
subon the graphg.- Parameters:
- g
Graph Graph in which the subgraph will be marked.
- sub
Graph Subgraph to be marked.
- vmap
VertexPropertyMap Vertex property map belonging to
sub, which maps its vertices to the indices of the corresponding vertices ing.- vmask
VertexPropertyMap(optional, default:None) Boolean vertex property map of
gwhere the result will be stored. If not provided, a new one will be created.- emask
EdgePropertyMap(optional, default:None) Boolean edge property map of
gwhere the result will be stored. If not provided, a new one will be created.
- g
- Returns:
- vmask
VertexPropertyMap Boolean vertex property map indicating whether or not a vertex in
gbelongs to the subgraphsub.- emask
EdgePropertyMap Boolean edge property map indicating whether or not an edge in
gbelongs to the subgraphsub.
- vmask