Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

tab-delimited file to graph

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69439] tab-delimited file to graph
  • From: aitor69gonzalez at gmail.com
  • Date: Tue, 12 Sep 2006 06:53:53 -0400 (EDT)

Hello,

I have a directed graph "mygraph" in a tab delimited file that looks
like this:
v1    v2
v2    v3
v3    v1
v1    v4
I would like to import this graph into mathematica, so that I can take
advantage of the -DiscreteMath`Combinatorica`- functions. So far, I was
only able to import it with Import["mygraph","TSV"] into a list of
two-item lists. Now, I am stuck there. Can somebody help me to convert
this list of two-item lists into a matrix or adjacency list of a
directed graph?

Thank you in advance,

Aitor


  • Prev by Date: init.m of FrontEnd in M5.2
  • Next by Date: Re: ReplaceAll (/.)
  • Previous by thread: RE: init.m of FrontEnd in M5.2
  • Next by thread: Re: tab-delimited file to graph