radial sugiyama positioning integration
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user