Hello, I have chosen to represent a graph in Haskell by a list of nodes (ex. n=[1,2,3,4]) and a list of pairs representing the edges (example m=[(1,2), (2,3)]). Now I have to see if the graph is strongly connected.
My main issue is how to find if there is a way between 2 nodes in the graph. I wrote something like that:
-- sees if 2 nod...
I am trying to group points of geospatial data based on density and relative distance. Is there a way that this can be done in SQL Server 2008 using the spatial features or would it be better to translate the data into graph data and use a graph clustering algorithm?
...
How do you get rid of the axes and dotted line grids when you plot in Matlab? Also, how do I make subplots of subplots. Since that's probably not very clear, what I mean is the following...
Let's say I have a 10x10x10 .mat file, so I open each of the 10 frames and plot what I have on each 10x10 frame. I generate 2 different plots for ea...
Hi there,
I need to know if it's possible to make it so authorized users can upload photos to a fan page of a company (to the wall) using the graph API.
Also, is it possible to become like (become a fan) of a company page through the api once the user is authorized.
Many thanks in advance,
Mark.
...
hi,
i am using cairoplot, to make graphs, however the file from where i am reading the data is growing huge and its taking a long time to process the graph
is there any real-time way to produce cairo graph, or at least store the previous readings..like rrd.
-krisdigitx
...
What would be the best (easy and fast) approach to plot live ECG data in a WPF application? I am thinking about writing my own control that would use paths to visualize the signal. But maybe there are ready to use graph libraries that suite my need?
Do you have any experience in that area?
...
Hi!
I'd like multiple threads to use the dijkstra_shortest_paths and astar_search functions of the BGL, and then read the property maps of the result vertices and edges.
I'm wondering wether I should use mutexes to ensure thread-safety.
So here are my questions:
1., Are the dijkstra_shortest_paths and astar_search functions of the Bo...
I'm using the subplot and then surf functions to generate images in 3D in Matlab. How do I get rid of the axes and axis' gridlines and change the color to all yellow or all green or something like that? Thanks.
...
Hello everyone I just read the new User fql table fields at
http://developers.facebook.com/docs/reference/fql/user
As I can see a lot of the fields have been deprecated such as work_history or books and movies. It is quite essential for my app to get all those fields for my user's friends in a single fql query.
If i am not wrong the o...
I'd like to estimate the number of leaves in a large tree structure for which I can't visit every node exhaustively. Is this algorithm appropriate? Does it have a name? Also, please pedant if I am using any terms improperly.
sum_trials = 0
num_trials = 0
WHILE time_is_not_up
bits = 0
ptr = tree.root
WHILE count(ptr.children)...
Hi guys,
I'm trying to find the width of a directed acyclic graph... as represented by an arbitrarily ordered list of nodes, without even an adjacency list.
The graph/list is for a parallel GNU Make-like workflow manager that uses files as its criteria for execution order. Each node has a list of source files and target files. We have ...
Hi i am using Fusion charts free with Rail 2.3.5
I tried to simulate the single_array example provided in the documentation but instead of graph it is showing me the following message
The method used is setDataXML.The XML is #Creates xml with values for sales data of products #along with their names. #The values required for building t...
I have posted this question at MathOverflow.com as well. I am no mathematician and English is not my first language, so please excuse me if my question is too stupid, it is poorly phrased, or both.
I am developing a program that creates timetables. My timetable-creating algorithm, besides creating the timetable, also creates a graph who...
When I work on someone else's code, I tipically need to abuse of grep in order to find data types declarations etc, and this usually makes me confused.
I'd like to have some tool which analyzes the source code and produces some graphviz-like drawing and allows me to follow dependencies.
Also I've found this on the internet, but I think...
how can i write program in java to find the transpose of the graph G, where the input and the output of the program are represented as adjacency list structure.
for example:
input:
1>2>3>4>1
outout:
1>4>3>2>
...
hi,
i am trying to use networkx with python, when i run this program, it get this error, is there anything missing?
#!/usr/bin/env python
import networkx as nx
import matplotlib
import matplotlib.pyplot
import matplotlib.pyplot as plt
G=nx.Graph()
G.add_node(1)
G.add_nodes_from([2,3,4,5,6,7,8,9,10])
#nx.draw_graphviz(G)
#nx_write_dot...
I am creating an application which will allow a developer to create a program flow-chart by selecting pre-defined functions from a ToolBox (which will show up as small graphical elements). In other words, developer will select one or more pre-defined functions (graphical elements) from ToolBox and drag-drop on the main work area. The app...
I'm having a difficult time understanding the paradigm of Matlab classes vs compared to c++. I wrote code the other day, and I thought it should work. It did not... until I added
<handle
after the classdef.
So I have two classes, landmarks and robot, both are called from within the simulation class. This is the main loop of obj....
Here is the code I used:
x = linspace(0,2);
e = exp(1);
lin = e;
quad = e-e.*x.*x/2;
cub = e-e.*x.*x/2;
quart = e-e.*x.*x/2+e.*x.*x.*x.*x/24;
act = e.^cos(x);
mplot = plot(x,act,x,lin,x,quad,x,cub,x,quart);
legend('actual','linear','quadratic','cubic','quartic')
This produces a legend matching the right colors to actual and linear, t...
Hello,
I'm designing a city building game and got into a problem.
Imagine Sierra's Caesar III game mechanics: you have many city districts with one market each. There are several granaries over the distance connected with a directed weighted graph. The difference: people (here cars) are units that form traffic jams (here goes the graph...