Skip to content

Commit

Permalink
Update FindShortestPath.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
andyrobbins committed Feb 17, 2016
1 parent bce1751 commit 10a8435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FindShortestPath.ps1
Expand Up @@ -6,12 +6,12 @@ $Nodes = Get-NetUser | ForEach-Object { $_.samaccountname }
$Nodes += Get-NetComputer

ForEach($Node in $Nodes){
$Vertex = New-Object PSObject
$Vertex = New-Object PSObject
$Vertex | Add-Member Noteproperty 'Name' $Node
$Vertex | Add-Member Noteproperty 'Edges' @()
$Vertex | Add-Member Noteproperty 'Distance' $Infinity
$Vertex | Add-Member Noteproperty 'Visited' $False
$Vertex | Add-Member Noteproperty 'Predecessor' $Null
$Vertex | Add-Member Noteproperty 'Predecessor' $Null
$Graph += $Vertex
}

Expand Down

0 comments on commit 10a8435

Please sign in to comment.