PowerShell + (GLEE – Graph Layout Execution Engine)

by Doug Finke on November 26, 2007

in GLEE,Microsoft,PowerShell

GLEE is a .NET tool for graph layout and viewing from Microsoft Research.

I worked up a PowerShell script that hosts the GLEE viewer in a form and creates a graph from an array of objects that that have a StartNode and EndNode.

$target = 1..15 |
   ForEach {
      New-Object PSObject |
         Add-Member -PassThru NoteProperty 
            StartNode "S$($rnd.Next(1,5))" |
         Add-Member -PassThru NoteProperty 
           EndNode "E$($rnd.Next(1,5))"
$target |
   ForEach {
      [void] $g.AddEdge($_.StartNode, $_.EndNode)


Download the script here. You’ll need to download GLEE too.

{ 2 trackbacks }

Windows PowerShell : Graphing with Glee
11.27.07 at 2:32 am
MSDN Blog Postings » Graphing with Glee
11.27.07 at 3:59 am

{ 1 comment… read it below or add one }

Grant Steinfeld 08.11.08 at 4:53 pm

excellent stuff oh obee one kahnobi

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Previous post:

Next post:

You are forbidden!