How can I format individual edges in a directed graph?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Felipe Schuback
am 1 Aug. 2017
Kommentiert: Felipe Schuback
am 2 Aug. 2017
Hi all -
I am plotting a directed graph, however the formatting is really important to get right so I can achieve the objectives in my assignment. However, I would need to format each edge individually. An edge will have certain formats if a certain condition is met.
How do I get different edge layouts in the same graph and plot it? I am not finding this anywhere on the internet. Is this possible?
All the best.
6 Kommentare
Steven Lord
am 2 Aug. 2017
See the documentation pages to which I linked in my Answer; they show how to use highlight and property manipulation to do what you're asking.
Akzeptierte Antwort
Steven Lord
am 1 Aug. 2017
You can control some properties of the edge lines in the plot of a graph or digraph on a per-edge basis using the highlight function or by directly manipulating the properties of the GraphPlot object as the "Edge Line Width by Weight" example on this documentation page shows.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!