Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
networks[contract] - contracts edges in a graph
Calling Sequence
contract(Eset, G)
contract(Pset, G)
Parameters
G
-
graph or network
Eset
edge or set or list of edges of G
Pset
connected vertex pair or a set or list of connected vertex pairs
Description
Important: The networks package has been deprecated. Use the superseding command GraphTheory[Contract] instead.
This procedure contracts the edges of G, specified by the first argument.
The edges to be contracted may be specified either individually or as a set of edge names or pairs of ends of edges (for example, {1,3} ).
If pairs of ends are used, each pair must uniquely identify an edge.
This procedure returns as its value the name of the vertex that survived the contraction of the specified edge. If more than one edge is contracted, then a set of surviving names is provided.
This routine is normally loaded by using the command with(networks), but it may also be referenced by using the full name networks[contract](...).
Examples
map(proc(e,G) [ e, ends(e,G) ] end proc, edges(G), G);
See Also
GraphTheory, GraphTheory[Contract], networks(deprecated)[connect], networks(deprecated)[delete], with
Download Help Document