Graphen- und Netzalgorithmen
Graphen modellieren die Verbindungen in einem Netzwerk und lassen sich umfassend auf verschiedene physikalische Systeme, biologische Systeme und Informationssysteme anwenden. Mit Graphen können Sie die Neuronen im Gehirn modellieren, die Flugmuster einer Fluggesellschaft und vieles mehr. Die Struktur eines Graphs setzt sich aus „Knoten“ und „Kanten“ zusammen. Jeder Knoten repräsentiert eine Entität und jede Kante eine Verbindung zwischen zwei Knoten. Weitere Informationen finden Sie unter Directed and Undirected Graphs.
Funktionen
Objekte
GraphPlot | Graph plot for directed and undirected graphs |
Eigenschaften
GraphPlot Properties | Graph plot appearance and behavior |
Themen
- Directed and Undirected Graphs
Introduction to directed and undirected graphs.
- Graphs and Matrices
This example shows an application of sparse matrices and explains the relationship between graphs and matrices.
- Modify Nodes and Edges of Existing Graph
This example shows how to access and modify the nodes and/or edges in a
graph
ordigraph
object using theaddedge
,rmedge
,addnode
,rmnode
,findedge
,findnode
, andsubgraph
functions. - Add Graph Node Names, Edge Weights, and Other Attributes
This example shows how to add attributes to the nodes and edges in graphs created using
graph
anddigraph
. - Graph Plotting and Customization
This example shows how to plot graphs, and then customize the display to add labels or highlighting to the graph nodes and edges.
- Label Graph Nodes and Edges
This example shows how to add and customize labels on graph nodes and edges.
- Add Node Properties to Graph Plot Data Tips
This example shows how to customize
GraphPlot
data tips to display extra node properties of a graph. - Visualize Breadth-First and Depth-First Search
This example shows how to define a function that visualizes the results of
bfsearch
anddfsearch
by highlighting the nodes and edges of a graph.