graph

help in the Donalds B. Johnson's algorithm, i cannot understand the pseudo code

Hi , does anyone know the Donald B. Johnson's algorithm which enumerates all the elementary circuits (cycles) in a Directed graph? link text I have the paper he had published in 1975 but I cannot understand the pseudo-code. My goal is to implement this algorithm in Java. Some questions I have is for example what is the matrix Ak i...

Code jumps out of a jar and runs? What is causing this?

I am trying to get a sample program working with JUNG, a graphing tool in Java. I downloaded and referenced all the .jar files in eclipse so my project hierarchy looks like this: In Test.java I have the following code: public class Test { static public void main() { System.out.print("Hello"); }} For some reason though when I tr...

Fractional y-var in ggplot

How can I easily create a fractional y-value when using ggplot? t <- as.factor(test=sample(seq(0,100,10),1000,rep=T)) d <- as.factor(sample(c(0,1),1000,rep=T) p <- data.frame(t,d) My best shot was: ggplot(p,aes(x=t,y=prop.table(table(t,d),1)[,1])) + geom_point() However this doesnt work and I guess there is an easier way around thi...

Facebook Graph API - Image Uploading (as3/flash)

I have been trying to get a bit more familiar with the Graph API for facebook. Its very convenient although the documentation is poor at some places. Im having trouble uploading an image to an album. Anyone know how to do it ? This is the code im currently working on :) private function uploadNewPic(albumId:String):void { var...

Open Source Semantic Web Project, input SPARQL, output Graph

Hi All, I am looking for an open source (java is preferred) semantic web project which it's input is SPARQL and its output is a triple RDF format grid & graph, like this site: http://linkedlifedata.com Any help would be appreciated Cheers Erwin ...

Neo4j Performing shortest path calculations on stored data

I would like to store the following graph data in the database, graph.makeEdge( "s", "c", "cost", (double) 7 ); graph.makeEdge( "c", "e", "cost", (double) 7 ); graph.makeEdge( "s", "a", "cost", (double) 2 ); graph.makeEdge( "a", "b", "cost", (double) 7 ); graph.makeEdge( "b", "e", "cost", (double) 2 ); Then run the Dijskra algorighm...

Subgraph isomorphism on disconnected graphs with connection rules

Hello I was wondering if anyone knows about a solution to the following problem: Given a graph g as query and a set of graphs B with connection rules R. The connection rules describe how two graphs out of B can be linked together. Linking points are marked vertexes. Find all combination of graphs in B that contain g as a subgraph. Reg...

How do I get rid of the pie chart outline in Perl's GD::Graph?

I am trying to create a pie chart with no outline using GD::Graph. Frustratingly I can control the colour of the outline with this: accentclr => 'black', So I would expect that I could get rid of the outline completely by doing this: accentclr => undef, However, when I do this the outline does disappear but the rest of the ...

How to build a Weighted Graph with Ruby's RGL or GRATR to perform Dijkstra's algorithm?

I would like to see an example of a Dijkastra search algorithm for a graph built using Ruby's RGL (http://rgl.rubyforge.org/) or GRATR (http://rubyforge.org/projects/gratr/). I know GRATR has Dijkastra support but I'm not really sure how to go about using it, any help would be appreciated. ...

Facebook Graph API Search without logged in user

Hi folks, I'm trying to issue a Facebook Graphp API search call for groups with a specific search term. The important fact is to search for groups not only beginning with the term but also to search for the term within the group name. So something like that. FQL => SELECT * FROM groups WHERE groupname LIKE '%term%' As far as i know th...

Handle complex options with Boost's program_options

I have a program that generates graphs using different multi-level models. Each multi-level model consists of a generation of a smaller seed graph (say, 50 nodes) which can be created from several models (for example - for each possible edge, choose to include it with probability p). After the seed graph generation, the graph is expande...

Scientific Data processing (Graph comparison and interpretation)

Hi stackoverflow friends, I'm trying to write a program to automate one of my more boring and repetitive work tasks. I have some programming experience but none with processing or interpreting large volumes of data so I am seeking your advice (both suggestions of techniques to try and also things to read to learn more about doing this s...

Need a java library for visualization that support automatic layout

I need a java graph library for visualization that I can incorporate in my own application. I found that jgraph is excellent for visualization but require explicit positioning of the nodes. Is there any open source java graph library that support automatic layout. Any suggestion will be really helpful for me. ...

finding ALL cycles in a huge sparse matrix

Hi there, First of all I'm quite a Java beginner, so I'm not sure if this is even possible! Basically I have a huge (3+million) data source of relational data (i.e. A is friends with B+C+D, B is friends with D+G+Z (but not A - i.e. unmutual) etc.) and I want to find every cycle within this (not necessarily connected) directed graph. I...

Oauth Logout using facebook graph api

Hi, I just made a website where i'm authorizing the users using the oauth2.0 and graph api. I also want to user logout from my website and facebook site,when they click on the logout button. I'm unable to find a solution for this last 24 hours.My code is in asp.net. Thanks in Advacnce ...

.NET implementation of planarity testing

Is there any .NET implementation of any planarity testing algorithm like Boyer-Myrvold's or anyone else? I looked through the web but I didn't manage to find ...

help in the Donalds B. Johnson's algorithm, i cannot understand the pseudo code (PART II)

Hi all , i cannot understand a certain part of the paper published by Donald Johnson about finding cycles (Circuits) in a graph. More specific i cannot understand what is the matrix Ak which is mentioned in the following line of the pseudo code : Ak:=adjacency structure of strong component K with least vertex in subgraph of G ind...

Facebook Open Graph - Grab how many times a page has been liked?

I have a site that allows users to create a saying and then users "like" those sayings on Facebook. http://www.likeylikey.net/ I got a friend to throw up this simple code in less than 2 hours so it's basic. He knows little to nothing regarding the Open Graph API. Basically, I want to know how I can programmatically store how many tim...

ShowGraph[ { {e1,e2}, {e1, e3} }, {e1,e2,e3} ]; // what is the problem here?

doesn't show specified graph in Mathematica Graph Theory package 'Combinatorica'. ...

how send message facebook friend through graph api using Accessstoken

Can anyone help me to send message to facebook friends using graph api. I tried $response = $facebook->call_api("/me/feed", "post", "to=john","message=You have a Test message"); It's not working. I have the accesstoken of the user in my hand.only I am confused on sending process. kindly reply ...