How to create a graph object with source and target vectors having zero labels?
Mostrar comentarios más antiguos
Hi,
I am using a real network data from stanford SNAP webpage. Some of the nodes are labeled zeros, so I got the following error when I used graph
"Error using matlab.internal.graph.MLGraph
Source must be a dense double array of positive integer node indices."
I tried to attach the double vector but its size exceed 5 MB. Also, since this data consists of millions of nodes and links, how can I exrtact a portion of the network with couple of thousands nodes ?
5 comentarios
Image Analyst
el 1 de Jun. de 2022
Maybe run through all the nodes adding 1 to them?
Rayan Glus
el 1 de Jun. de 2022
Rayan Glus
el 1 de Jun. de 2022
Steven Lord
el 1 de Jun. de 2022
This category page lists the operations you can perform on graph and/or digraph objects (a few of the operations only make sense for undirected graphs and a few only for directed graphs.)
Rayan Glus
el 5 de Jun. de 2022
Respuestas (0)
Categorías
Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!