Lemutec.GraphSharp
3.0.3
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
dotnet add package Lemutec.GraphSharp --version 3.0.3
NuGet\Install-Package Lemutec.GraphSharp -Version 3.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lemutec.GraphSharp" Version="3.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lemutec.GraphSharp" Version="3.0.3" />
<PackageReference Include="Lemutec.GraphSharp" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lemutec.GraphSharp --version 3.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Lemutec.GraphSharp, 3.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Lemutec.GraphSharp@3.0.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lemutec.GraphSharp&version=3.0.3
#tool nuget:?package=Lemutec.GraphSharp&version=3.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GraphSharp
Forked from graphsharp
e.g.
using GraphSharp;
using GraphSharp.Algorithms.Layout.Simple.Hierarchical;
using QuickGraph;
var g = new BidirectionalGraph<string, Edge<string>>(true);
g.AddVertexRange(new[] { "S", "A", "B", "A1", "A2", "B1", "B2" });
g.AddEdge(new Edge<string>("S", "A"));
g.AddEdge(new Edge<string>("S", "B"));
g.AddEdge(new Edge<string>("A", "A1"));
g.AddEdge(new Edge<string>("A", "A2"));
g.AddEdge(new Edge<string>("B", "B1"));
g.AddEdge(new Edge<string>("B1", "B2"));
var vertexSizes = new Dictionary<string, Size>
{
["S"] = new Size(10, 5),
["A"] = new Size(10, 5),
["A1"] = new Size(10, 5),
["A2"] = new Size(10, 5),
["B"] = new Size(10, 5),
["B1"] = new Size(10, 5),
["B2"] = new Size(10, 5),
};
var parameters = new EfficientSugiyamaLayoutParameters
{
LayerDistance = 50,
VertexDistance = 30,
EdgeRouting = SugiyamaEdgeRoutings.Orthogonal,
PositionMode = -1,
MinimizeEdgeLength = true,
OptimizeWidth = true,
};
var layoutAlgorithm = new EfficientSugiyamaLayoutAlgorithm<string, Edge<string>, BidirectionalGraph<string, Edge<string>>>(g, parameters, vertexSizes);
layoutAlgorithm.Compute();
var vertexPositions = layoutAlgorithm.VertexPositions;
foreach (var kvp in vertexPositions)
{
Debug.WriteLine($"Vertex {kvp.Key}: X={kvp.Value.X:F2}, Y={kvp.Value.Y:F2}");
}
var edgeRoutes = layoutAlgorithm.EdgeRoutes;
foreach (var kvp in edgeRoutes)
{
Debug.WriteLine($"Edge {kvp.Key}: has {kvp.Value?.Length ?? 0} route points");
if (kvp.Value != null)
{
for (int i = 0; i < kvp.Value.Length; i++)
{
Debug.WriteLine($" Route points {i}: X={kvp.Value[i].X:F2}, Y={kvp.Value[i].Y:F2}");
}
}
}
<img src="assets/0703e5e0-fbf5-4b47-b107-d7e2b9ea5615.png" alt="0703e5e0-fbf5-4b47-b107-d7e2b9ea5615" style="zoom: 50%;" />
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0-windows7.0 is compatible. net6.0-windows was computed. net6.0-windows7.0 is compatible. net7.0-windows was computed. net7.0-windows7.0 is compatible. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.2
- No dependencies.
-
.NETFramework 4.7.2
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
-
net5.0-windows7.0
- No dependencies.
-
net6.0-windows7.0
- No dependencies.
-
net7.0-windows7.0
- No dependencies.
-
net8.0-windows7.0
- No dependencies.
-
net9.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
3.0.3 | 129 | 8/19/2025 |