Close
Close window
networks(deprecated)/induce - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : networks(deprecated)/induce
[フレーム] [フレーム]

networks

induce

induces a subgraph in a graph

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)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /