필터 지우기
필터 지우기

How to create a graph object with source and target vectors having zero labels?

조회 수: 3 (최근 30일)
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
Steven Lord
Steven Lord 2022년 6월 1일
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.)
conncomp and biconncomp in the Analyze Structure section look relevant to your question.
Rayan Glus
Rayan Glus 2022년 6월 5일
Thanks Steven for referring me to conncomp documentation. I was able to preprocess my large graph and all is good now.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Undirected Graphs에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by