Can I use the graph function to link user defined objects instead of vertices?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Marc Laub
am 8 Jul. 2020
Beantwortet: Steven Lord
am 8 Jul. 2020
Hey there,
is it possible to use the excisting grapf-function with all its funtionalities to link my own objects rather than only vertices with some coordintes?
I have objects that needs to be linked, they have some properties(like diameter and so on, but no possition) and I thought i cpuld use the build in graph function with its adjacend matrix for that?
Is that possible and if so how, or does it not work becauce of the missing properties like position that are necessary for the graph function?
Many thanks in advance,
Best regards
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 8 Jul. 2020
Depending on what you want to do with the information stored in the user-defined objects, storing them as custom attributes on the nodes of the graph or digraph may be sufficient. See this documentation page for more information.
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!