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[neighbors] - find neighboring vertices, treating all edges as undirected
Calling Sequence
neighbors(v, G)
neighbors(vset, G)
neighbors(G)
Parameters
v
-
vertex of G
vset
set of vertices of G
G
graph or network
Description
Important:The networks package has been deprecated. Use the superseding command GraphTheory[Neighbors]instead.
Given a vertex v of a graph G, this routine returns the set of vertices which are at the ends of any edges incident with v, independent of direction.
Given a set of vertices, vset, the neighbors of the subgraph induced by vset are computed.
Directional information can be retrieved through use of the commands head() and tail(). Alternatively, the commands arrivals() and departures() provide information about ``neighbors'' with respect to incoming or outgoing directed edges.
When called with just a graph the actual neighbors table, indexed by vertices, is returned. Caution is required in this instance as this neighbors table is fully maintained by the network primitives such as addedge() and delete(). Specifically, direct assignments are not normally made to this table by the user.
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[neighbors](...).
Examples
See Also
GraphTheory, GraphTheory[MinimumDegree], networks(deprecated)[arrivals], networks(deprecated)[head], networks(deprecated)[tail]
Download Help Document