Skip to content

Repository files navigation

GraphEngineModule

Some tests to figure out how to use GraphEngine via PowerShell

Here is something that works so far

Set-GEConfigOption-LogDirectory "C:\trinity-log"`-StorageRoot "C:\storage"`-LogEchoOnConsole $false`-LogLevel ([Trinity.Diagnostics.LogLevel]::new()) `-Verbose
Add-GETslData-Path C:\Repo\Github\My\GraphEngineModule\TSL\ -Namespace tsltest
$a= [tsltest.node]::new("A")
$b= [tsltest.node]::new("B")
$c= [tsltest.node]::new("C")
$d= [tsltest.node]::new("D")
$e= [tsltest.node]::new("E")
$f= [tsltest.node]::new("F")
$g= [tsltest.node]::new("G")
$h= [tsltest.node]::new("H")
Add-GEVertex-Vertex $aAdd-GEVertex-Vertex $bAdd-GEVertex-Vertex $cAdd-GEVertex-Vertex $dAdd-GEVertex-Vertex $eAdd-GEVertex-Vertex $fAdd-GEVertex-Vertex $gAdd-GEVertex-Vertex $hAdd-GEEdge-from $a-to $bAdd-GEEdge-from $b-to $cAdd-GEEdge-from $c-to $fAdd-GEEdge-from $b-to $dAdd-GEEdge-from $d-to $eAdd-GEEdge-from $c-to $hAdd-GEEdge-from $c-to $gAdd-GEEdge-from $g-to $cGet-GECellCount$query="MAG .StartFrom($($g.CellId)) .FollowEdge(`"OutEdge`") .VisitNode(_ => Action.Continue & Action.Return) .FollowEdge(`"OutEdge`") .VisitNode(_ => Action.Continue & Action.Return)"Get-GEVertex-Query $query

About

Powershell module to use GraphEngine

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages