LiteGraph.Sdk 3.1.4

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

// Install LiteGraph.Sdk as a Cake Tool
#tool nuget:?package=LiteGraph.Sdk&version=3.1.4                

<img src="https://github.com/jchristn/LiteGraph/blob/main/assets/favicon.png" width="256" height="256">

LiteGraph C# SDK

NuGet Version NuGet

LiteGraph is a lightweight graph database with both relational and vector support, built using Sqlite, with support for exporting to GEXF. LiteGraph is intended to be a multi-modal database primarily for providing persistence and retrieval for knowledge and artificial intelligence applications.

New in v3.1.x

  • Added support for labels on graphs, nodes, edges (string list)
  • Added support for vector persistence and search
  • Updated SDK, test, and Postman collections accordingly
  • Updated GEXF export to support labels and tags
  • Internal refactor to reduce code bloat
  • Multiple bugfixes and QoL improvements

Bugs, Feedback, or Enhancement Requests

Please feel free to start an issue or a discussion!

Example

Refer to the Test.Sdk project for a full example.

using LiteGraph.Sdk;

LiteGraphSdk sdk = new LiteGraphSdk("http://localhost:8701", "default");
Guid tenantGuid = Guid.Parse("00000000-0000-0000-0000-000000000000");

Graph graph = sdk.CreateGraph(tenantGuid, Guid.NewGuid(), "My graph");
Node node1 = sdk.CreateNode(tenantGuid, graph.GUID, new Node { Name = "My node 1" });
Node node2 = sdk.CreateNode(tenantGuid, graph.GUID, new Node { Name = "My node 2" });
Edge edgeFrom1To2 = sdk.CreateEdge(tenantGuid, graph.GUID, new Edge { From = node1.GUID, To = node2.GUID });

Version History

Please refer to CHANGELOG.md for version history.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on LiteGraph.Sdk:

Package Downloads
View.Sdk

C# SDK for View AI data-as-a-service.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.5 51 2/17/2025
3.1.4 51 2/15/2025
3.1.3 70 2/10/2025
3.1.1 73 1/15/2025
3.1.0 42 1/9/2025
2.1.1 126 11/8/2024
2.1.0 100 11/2/2024
2.0.17 133 10/30/2024
2.0.14 125 8/29/2024
2.0.13 131 8/24/2024
2.0.12 128 8/13/2024
2.0.11 121 8/10/2024
2.0.10 121 8/9/2024
2.0.9 122 8/8/2024
2.0.8 123 8/8/2024
2.0.7 109 8/7/2024
2.0.6 109 8/7/2024
2.0.5 101 8/7/2024
2.0.4 96 8/6/2024
2.0.3 87 8/6/2024
2.0.2 112 7/18/2024
2.0.1 104 7/18/2024

Refactor, multitenancy, users, credentials, and tags, including tag based retrieval