Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9937 > unrolled thread

Re: new Graph function + combinatorica: various problems

Started byanother.schmidt@googlemail.com
First post2012-05-03 08:37 +0000
Last post2012-05-05 08:12 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: new Graph function + combinatorica: various problems another.schmidt@googlemail.com - 2012-05-03 08:37 +0000
    Re: new Graph function + combinatorica: various problems Szabolcs Horvát <szhorvat@gmail.com> - 2012-05-05 08:12 +0000

#9937 — Re: new Graph function + combinatorica: various problems

Fromanother.schmidt@googlemail.com
Date2012-05-03 08:37 +0000
SubjectRe: new Graph function + combinatorica: various problems
Message-ID<jntg4c$1f$1@smc.vnet.net>
nice. Can anybody tell me a convenient way to convert an explicit Combinatorica graph g to a System Graph g2 without using wrappers?
Thanks a lot.
Jesch

[toc] | [next] | [standalone]


#9964

FromSzabolcs Horvát <szhorvat@gmail.com>
Date2012-05-05 08:12 +0000
Message-ID<jo2ncp$mak$1@smc.vnet.net>
In reply to#9937
On 2012.05.03. 10:37, another.schmidt@googlemail.com wrote:
> nice. Can anybody tell me a convenient way to convert an explicit Combinatorica graph g to a System Graph g2 without using wrappers?
> Thanks a lot.
> Jesch
>

For a quick solution, you could use something like

System`Graph@Edges[g]

if g is the Combinatorica graph.  This will discard the graph layout 
(vertex positions on the plane), but will keep the structure (i.e. the 
actual graph).

-- 
Szabolcs Horvát
Visit Mathematica.SE:  http://mathematica.stackexchange.com/

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web