Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Constructing WeightedAdjacencyGraphs' topicStudent Support Forum > General > "Constructing WeightedAdjacencyGraphs"

Next Comment >Help | Reply To Topic
Author Comment/Response
Evan Wheeler
12/04/11 10:28pm

Hi there,
I am having a problem using Mathematica's graphing capabilities. I'm trying to construct a directed graph with weighted edges so I can put it into TravelingSalesman[]. I'm currently trying to do this by importing data into a SparseArray and trying to construct a WeightedAdjacencyGraph out of that SparseArray. However, Mathematica gives me errors or just echoes the input. I've read and re-read the reference article on WeightedAdjacencyGraph to no avail. The example in WeightedAdjacencyGraph works, but my input doesn't.
By the way, this is just example data: I have a set of raw data that I'm going to import once I get this small example working.
Evan Wheeler

Attachment: weightedadjacencygraphfailing.nb, URL: ,

Subject (listing for 'Constructing WeightedAdjacencyGraphs')
Author Date Posted
Constructing WeightedAdjacencyGraphs Evan Wheeler 12/04/11 10:28pm
Re: Constructing WeightedAdjacencyGraphs Quinn McKinsey 12/06/11 1:51pm
Re: Constructing WeightedAdjacencyGraphs Evan Wheeler 12/07/11 11:13am
Next Comment >Help | Reply To Topic