The raw data

We are working with two data files. They contain the data that will be used for this section in terms of the vertices and edges that make up a graph:

graph1_edges.csv
graph1_vertex.csv

The vertex file contains just six lines representing the graph used in the last section. Each vertex represents a person and has a vertex ID number, a name, and an age value:

1,Mike,48
2,Sarah,45
3,John,25
4,Jim,53
5,Kate,22
6,Flo,52

The edge file contains a set of directed edge values in the form source vertex ID, destination vertex ID, and relationship. So, record 1 forms a Sister relationship between Flo and Mike:

6,1,Sister
1,2,Husband
2,1,Wife
5,1,Daughter
5,2,Daughter
3,1,Son
3,2,Son
4,1,Friend
1,5,Father
1,3,Father
2,5,Mother
2,3,Mother

Lets, examine some GraphX code samples.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.78.83