Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
148
Issues
148
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
purescript-gargantext
Commits
7d3246b8
Verified
Commit
7d3246b8
authored
Jun 28, 2025
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[graph] order related terms by edge weight, not by node.size
parent
82f8b36c
Pipeline
#7705
passed with stages
in 20 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Sidebar.purs
src/Gargantext/Components/GraphExplorer/Sidebar.purs
+8
-2
No files found.
src/Gargantext/Components/GraphExplorer/Sidebar.purs
View file @
7d3246b8
...
@@ -515,9 +515,15 @@ neighborhoodCpt = R.memo' $ here.component "neighborhood" cpt
...
@@ -515,9 +515,15 @@ neighborhoodCpt = R.memo' $ here.component "neighborhood" cpt
R.useEffect1' selectedNodeIds' do
R.useEffect1' selectedNodeIds' do
let refreshed = neighbourBadges graph' selectedNodeIds'
let refreshed = neighbourBadges graph' selectedNodeIds'
let count = Seq.length refreshed
let count = Seq.length refreshed
let ordered = A.sortWith (\n -> -n.size) $ Seq.toUnfoldable refreshed
-- let ordered = A.sortWith (\n -> -n.size) $ Seq.toUnfoldable refreshed
let neighbours' = neighbourBadges graph' selectedNodeIds'
let edges' = SigmaxT.neighboringEdges graph' selectedNodeIds'
let edgesSorted = A.sortWith (\e -> -e.weight) $ A.fromFoldable edges'
let neighboursSorted = (\e -> if Set.member e.source selectedNodeIds' then e.targetNode else e.sourceNode) <$> edgesSorted
T.write_ (count - 1) termCountBox
T.write_ (count - 1) termCountBox
T.write_
order
ed termListBox
T.write_
neighboursSort
ed termListBox
T.write_ false showMoreBox
T.write_ false showMoreBox
-- | Render
-- | Render
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment