We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › Social Networks Library
Page Index Toggle Pages: 1
Social Networks Library (Read 4519 times)
Social Networks Library
Dec 4th, 2006, 5:29am
 
Hi everyone-

I've written a Processing library for handling network data (graph layouts, partitions, i/o, etc).  At the moment I'm using it to create sketches of the Wikipedia and US Patent datasets.  Hopefully others will find the library useful as well!

More info (source, API, demo, tutorial) at http://ella.slis.indiana.edu/~tohollow/SocialNetworksLibrary/

Cheers,
Todd


Re: Social Networks Library
Reply #1 - Feb 16th, 2007, 7:17am
 
Hi - I just downloaded the library and tried the tutorial on your web page. I get the exception pasted below. I'm using the latest version of Processing on Windows XP.

Any ideas? Thanks.


java.lang.NullPointerException
at java.io.DataInputStream.readInt(Unknown Source)
at processing.core.PFont.<init>(PFont.java:122)
at processing.core.PApplet.loadFont(PApplet.java:3722)
at socialNetworks.Network.draw(Network.java:55)

java.lang.RuntimeException: Could not load font GillSansMT-10.vlw. Make sure that the font has been copied to the data folder of your sketch.

at processing.core.PApplet.die(PApplet.java:2336)
at processing.core.PApplet.die(PApplet.java:2354)
at processing.core.PApplet.loadFont(PApplet.java:3725)
at socialNetworks.Network.draw(Network.java:55)
at Temporary_5110_20.draw(Temporary_5110_20.java:36)
at processing.core.PApplet.handleDisplay(PApplet.java:1355)
at processing.core.PGraphics.requestDisplay(PGraphics.java:564)
at processing.core.PApplet.run(PApplet.java:1450)
at java.lang.Thread.run(Unknown Source)


Re: Social Networks Library
Reply #2 - Feb 16th, 2007, 8:49am
 
I fixed it by downloading the source and creating a VLW file using Arial (I couldn't find GilSansMT on my system) and recompiling the jar. Seems to work now.
Re: Social Networks Library
Reply #3 - May 10th, 2008, 12:19am
 
It's actually quite easier if you create a font (inside Processing in Tools -> Create Font) with the name GillSansMT-10.vlw . You don't have to have that font, choose any font you want, but name it that.

No need to mess with the lib.
Re: Social Networks Library
Reply #4 - Aug 19th, 2009, 7:12am
 
Hi, is there any way to make this lib available again?
Re: Social Networks Library
Reply #5 - Aug 23rd, 2009, 7:58pm
 
I'd be interested in seeing this as well.  The link is dead.
Page Index Toggle Pages: 1