create a graph for a large dataset in Matlab

How to create a graph for a large dataset in Matlab? first load the dataset, how to define nodes, edges, and weights?because we cant define source and target nodes and their weights in a large dataset, for example, creating graph for a social network

 Respuesta aceptada

Steven Lord
Steven Lord el 27 de Oct. de 2017

0 votos

How large is your "large dataset"?
You might find this post on Loren's blog useful, as it walks through creating and analyzing a graph using data about friendship between a number of karate clubs.

4 comentarios

bita hallajian
bita hallajian el 27 de Oct. de 2017
Thank you so much, I used the codes that you mentioned a lot, these codes are for karate club or facebook, I want to implement Bugzilla or any other bug tracking systems but I don't have the data set, nodes are stakeholders that post comments on one requirement,how can I show connection between these nodes in graph,can you give me some information in this case?
bita hallajian
bita hallajian el 27 de Oct. de 2017
Is it possible to introduce me a link in this relation I'll be very grateful with your favour
Steven Lord
Steven Lord el 27 de Oct. de 2017
So you want two nodes to be connected by an edge if there is at least one bug on which they both commented? So if you looked at MATLAB Answers you and I would be connected because we both posted in this Answer?
That should be possible to do, but I don't have any code prepared to do it. My thought is to assemble an array with two columns, each row containing a pair of people who posted in the same bug. sort each row then take the unique rows. Continue building that array until you've processed all the bugs in the tracking system, then build your graph using that array.
Alternately for each bug report you could build that same array, check which edges are not already in the graph under construction using findedge, and add the new edges using addedge.
bita hallajian
bita hallajian el 27 de Oct. de 2017
With great thanks for your help I'll try the helpful points you directed me

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.

Preguntada:

el 27 de Oct. de 2017

Comentada:

el 27 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by