GraphStream Users

Archives de la liste Aide


Re: Reading a customized file format all at once


Chronologique Discussions 
  • From: Ademir Gabardo <ademir.gabbardo AT gmail.com>
  • To: suhas bhairav <suhasbhairav AT gmail.com>, "graphstream-users AT litislab.fr" <graphstream-users AT litislab.fr>
  • Subject: Re: Reading a customized file format all at once
  • Date: Fri, 20 May 2016 08:46:59 +1000

Hi Suhas, let’s wait for someone's else to answer, but, I think you can simply read the file with the Java Buffer Reader and File Reader and pass the edges, like you said source->target.
I know that there is a option in GraphStream that auto creates the nodes.
600 000 lines is not much.
It should be done in less than a minute.

If nobody else  answer I can help you to build the script if you need help.

Cheers,
Ademir


From: suhas bhairav <suhasbhairav AT gmail.com>
Date: Friday, May 20, 2016 at 8:40 AM
To: "ademir.gabbardo AT gmail.com" <ademir.gabbardo AT gmail.com>
Subject: Re: Reading a customized file format all at once

Hi Ademir,

Thank you for your reply. Yes, I use Java. I have files that contain around 600,000 nodes each. So I was wondering if there are any in-built functions in graphstream that permit adding the entire content of the file to the sink all at once to generate such large graphs in a very short time or should I make use of the usual programming semantics of Java to generate the same.

Regards
Suhas Bhairav

On 20 May 2016 at 00:34, Ademir Gabardo <ademir.gabbardo AT gmail.com> wrote:
Hi Suhas, is easy to write a Java code to read your file and generate the graph. Java is suitable for you?
This is the only information that you have?
How big is the file?

Kind Regards,
Ademir

From: suhas bhairav <suhasbhairav AT gmail.com>
Reply-To: <graphstream-users AT litislab.fr>, suhas bhairav <suhasbhairav AT gmail.com>
Date: Friday, May 20, 2016 at 8:10 AM
To: <graphstream-users AT litislab.fr>
Subject: Reading a customized file format all at once

Hi,

Is there a way in graphstream to read a large file having the following format all at once and adding to the sink?

Example file format:-

#SourceID     DestinationID
100                101
102                100
103                101


Regards
Suhas Bhairav




Archives gérées par MHonArc 2.6.16.

Top of page