radial sugiyama positioning integration

This commit is contained in:
Oxy8
2026-03-23 11:13:27 -03:00
parent 6b9115e43b
commit 696844f341
51 changed files with 10089 additions and 364 deletions

View File

@@ -6,10 +6,12 @@ import (
)
type snapshotKey struct {
NodeLimit int
EdgeLimit int
IncludeBNodes bool
GraphQueryID string
NodeLimit int
EdgeLimit int
IncludeBNodes bool
GraphQueryID string
LayoutEngine string
LayoutRootIRI string
}
type snapshotInflight struct {
@@ -37,7 +39,14 @@ func NewGraphSnapshotService(sparql *AnzoGraphClient, cfg Config) *GraphSnapshot
}
func (s *GraphSnapshotService) Get(ctx context.Context, nodeLimit int, edgeLimit int, graphQueryID string) (GraphResponse, error) {
key := snapshotKey{NodeLimit: nodeLimit, EdgeLimit: edgeLimit, IncludeBNodes: s.cfg.IncludeBNodes, GraphQueryID: graphQueryID}
key := snapshotKey{
NodeLimit: nodeLimit,
EdgeLimit: edgeLimit,
IncludeBNodes: s.cfg.IncludeBNodes,
GraphQueryID: graphQueryID,
LayoutEngine: s.cfg.HierarchyLayoutEngine,
LayoutRootIRI: s.cfg.HierarchyLayoutRootIRI,
}
s.mu.Lock()
if snap, ok := s.cache[key]; ok {