Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
networks[connect] - connects two sets of vertices in a graph
Calling Sequence
connect(S1, S2, G)
connect(S1, S2, weights=L1, G)
connect(S1, S2, names=L2, G)
connect(S1, S2, 'directed', G)
connect(S1, S2, 'weights'=L1, 'names'=L2, 'directed', G)
Parameters
G
-
graph or network
S1
vertex list or set from G
S2
L1
list of edge weights
L2
list of edge names
Description
Important: The networks package has been deprecated. Use the superseding package GraphTheory instead.
This procedure connects each vertex in S1 to a vertex in S2 with an edge. The names of the new edges are returned in an expression sequence.
If the 'directed' flag is included as an argument then all the edges are regarded as directed from S1 to S2. In all other cases, the edges are regarded as undirected.
Specific edge weights and names can be indicated by providing a list of weights (L1) and names (L1). In the case of more than one edge, it can be helpful to provide the vertices as lists rather than sets so that mapping to the edges is unaffected by the random ordering of elements in sets.
The lists L1 and L2 must contain entries where S1 and S2 contain c1 and c2 elements respectively.
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[connect](...).
Examples
See Also
GraphTheory, networks(deprecated)[addedge], with
Download Help Document