Is it possible for matlab to convert a graph into an adjacency matrix?

조회 수: 8 (최근 30일)
jy tan
jy tan 2012년 1월 16일

답변 (2개)

Walter Roberson
Walter Roberson 2012년 1월 16일
What data structure is currently being used to represent your graph? Is it defined by edges, defined by vertices, is it a object drawn on the screen whose data can be extracted using get(), or is it an image you have to interpret to determine the vertices and connections?
  댓글 수: 2
jy tan
jy tan 2012년 1월 16일
i think it's currently defined by edges, vertices, in a gml file
Walter Roberson
Walter Roberson 2012년 1월 19일
GML as in Geography Markup Language? If so then looking around a little, I do not find any direct way to read such files in MATLAB. I do, though, find a Java package for dealing with them, that you should be able to use from MATLAB; see http://gcmd.nasa.gov/records/GML4J.html

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


jy tan
jy tan 2012년 1월 19일
is it possible to provide any clue how to use the above url?
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 1월 19일
Not usefully until we have a good handle on the data format. A lot of graphs come defined in terms of adjacency matrices so possibly once the data is read in, there would be no operation needed.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by