Mathema.Graph.MAUI.Visualization 1.1.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package Mathema.Graph.MAUI.Visualization --version 1.1.5
NuGet\Install-Package Mathema.Graph.MAUI.Visualization -Version 1.1.5
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="Mathema.Graph.MAUI.Visualization" Version="1.1.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mathema.Graph.MAUI.Visualization --version 1.1.5
#r "nuget: Mathema.Graph.MAUI.Visualization, 1.1.5"
#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.
// Install Mathema.Graph.MAUI.Visualization as a Cake Addin
#addin nuget:?package=Mathema.Graph.MAUI.Visualization&version=1.1.5

// Install Mathema.Graph.MAUI.Visualization as a Cake Tool
#tool nuget:?package=Mathema.Graph.MAUI.Visualization&version=1.1.5

Mathema.Graph.MAUI.Visualization Library

Welcome to the Mathema.Graph.MAUI.Visualization library for .NET MAUI! This library provides a powerful and flexible graph visualization control that allows you to display any graph with ease.

Features and Usage Guidelines

Versatile Graph Display:

The control supports the visualization of any graph, offering flexibility in the representation of graph elements.

Sample Image

Object-Oriented Graph Elements:

Nodes and edges within the graph can hold arbitrary objects, granting users freedom in data representation. Just convert your graph like this:

using Graph.MAUI.Visualization.Models;
var graph = new Graph();
var a = new DataNode() { DataItem = new YourObject() };
var b = new DataNode() { DataItem = new YourObject() };
graph.AddNode(a);
graph.AddNode(b);
// add more nodes

var c = new DataEdge(a, b) { DataItem = new YourObject() });
graph.AddEdge(c);
// add more edges...

MSAGL Integration:

Microsoft MSAGL is utilized for efficient graph layout calculations, ensuring a visually appealing presentation.

XAML Integration:

Easily insert the control into your XAML layouts, thanks to seamless integration with SkiaSharp.

Customizable Binding Properties:

Layout Settings: Choose from various layout algorithms (e.g., Sigma algorithm or MDS) through the LayoutSetting property. Interactive Elements: Define actions using ICommand for both edge and vertex interactions through OnEdgeClicked and OnVertexClicked. Much more...

Usage Example (with CommunityToolkit.Mvvm):

Here's an example of how to use the control:

XAML:
<control:VisualizationControlView
    BackgroundColor="Transparent"
    HorizontalOptions="FillAndExpand"
    VerticalOptions="FillAndExpand"
    LayoutSetting="SugiyamaScheme"
    Graph="{Binding GraphData}"
    OnEdgeClicked="{Binding EdgeClickedCommand}"
    OnVertexClicked="{Binding NodeClickedCommand}"
    EdgeThickness="2"
    VertexHeight="45.0"
    VertexWidth="80.0"
    VertexShape="Ellipse">
</control:VisualizationControlView>
C#:
public partial class GraphsViewModel : BaseViewModel
{
    [ObservableProperty]
    Graph graphData;

    public GraphsViewModel()
    {
        var graph = new Graph();
	    var a = new DataNode() { DataItem = new YourObject() };
	    var b = new DataNode() { DataItem = new YourObject() };
        graph.AddNode(a);
        graph.AddNode(b);
	    // add more nodes

	    var c = new DataEdge(a, b) { DataItem = new YourObject() });
        graph.AddEdge(c);
	    // add more edges...

        // set property
	    GraphData = graph;
    }

    [RelayCommand]
    async Task NodeClicked(Node vm)
    {
	    // Handle individual node "clicked" event
    }

    [RelayCommand]
    async Task EdgeClicked(Edge vm)
    {
	    // Handle individual edge "clicked" event
    }
}

Feel free to explore the various properties and customize the control to suit your specific graph visualization needs. Thank you for choosing Mathema's GraphVisualizationControl library! If you have any questions or feedback, please don't hesitate to reach out.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-android33.0 is compatible.  net7.0-ios was computed.  net7.0-ios16.1 is compatible.  net7.0-maccatalyst was computed.  net7.0-maccatalyst16.1 is compatible.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net7.0-windows10.0.19041 is compatible.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.1.9 239 10/24/2023
1.1.8 112 10/24/2023
1.1.7 98 10/23/2023
1.1.6 100 10/23/2023
1.1.5 117 10/22/2023
1.1.4 107 10/22/2023
1.1.3 111 10/22/2023
1.1.2 119 10/22/2023
1.1.1 121 10/22/2023
1.1.0 119 10/21/2023
1.0.13 111 10/18/2023
1.0.12 123 10/14/2023
1.0.11 110 10/13/2023
1.0.10 105 10/13/2023
1.0.9 109 10/13/2023
1.0.8 106 10/13/2023
1.0.7 111 10/13/2023
1.0.6 107 10/13/2023
1.0.5 108 10/13/2023
1.0.4 109 10/13/2023
1.0.3 110 10/13/2023
1.0.2 104 10/13/2023
1.0.1 116 10/13/2023
1.0.0 109 10/13/2023