networks(deprecated)/induce - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : networks(deprecated)/induce

networks

  

induce

  

induces a subgraph in a graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

induce(Eset, G)

induce(Vset, G)

Parameters

Eset

-

set of edges from G

Vset

-

set of vertices from G

G

-

graph or network

Description

• 

Important:The networks package has been deprecated. Use the superseding command GraphTheory[InducedSubgraph]instead.

• 

This routine creates a subgraph of G from either a set of vertices and their incident edges or a set of edges and their ends.

• 

This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[induce](...).

Examples

Important:The networks package has been deprecated. Use the superseding command GraphTheory[InducedSubgraph]instead.

withnetworks:

Gcomplete5:

induce1,2,3,4,G

procxoptionGRAPH,2;ifx=_Edgesthenthisproc_Edgeselifx=_EdgeIndexthenthisproc_EdgeIndextablesymmetricelifx=_Headthenthisproc_Headtableelifx=_Tailthenthisproc_Tailtableelifx=_Eweightthenthisproc_Eweighttableelifx=_Endsthenthisproc_Endstableelifx=_Verticesthenthisproc_Verticeselifx=_Vweightthenthisproc_Vweighttablesparseelifx=_Ancestorthenthisproc_Ancestortableelifx=_Daughterthenthisproc_Daughtertableelifx=_Neighborsthenthisproc_Neighborstableelifx=_Statusthenthisproc_Status'SIMPLE'elifx=_Emaxnamethenthisproc_Emaxname0elsereturn'procnameargs'end ifend proc

(1)

ends

1,2,1,3,1,4,2,3,2,4,3,4

(2)

Hinduceincident1,G,G:

endsH

1,2,1,3,1,4,1,5

(3)

See Also

GraphTheory

GraphTheory[InducedSubgraph]

networks(deprecated)[complement]

networks(deprecated)[edges]

networks(deprecated)[incident]

with