igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Visualization


From: serafim loukas
Subject: Re: [igraph] Visualization
Date: Thu, 13 Sep 2018 14:28:10 +0000

Hello,


Have you tried to use the layout argument ?

Example:
layout = graph.layout("kk")
plot(graph, layout = layout)

Best,
Makis

On 13 Sep 2018, at 16:20, bright silas Aboh <address@hidden> wrote:

Hello All,
I am Bright and I started using igraph(python) yesterday

The goal is to use igraph to visualize cdr(call detail record), to start with, I created an edge from the cdr.csv data, using the caller as the the source and the called_number as the target.

To view this data however, igraph is showing the graph without any link or edges between the subscribers.
Any help is warmly welcome

This is a snapshot of my code in pycharm:

import pandas as pd
import igraph
import csv


reader = csv.DictReader(open("edges.csv"))
graph = igraph.Graph.DictList(vertices=None, edge_foreign_keys=("src","dst"),edges=reader,directed=False)
igraph.plot(graph,autocurve=True, edge_width = 0.051)
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help


reply via email to

[Prev in Thread] Current Thread [Next in Thread]