Skip to content

Commit

Permalink
🚸 Only show one layer on graph
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasGruber committed Sep 30, 2024
1 parent 332da2e commit c0dd844
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/layout/GraphUsersGeneric.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ const GraphUsersGeneric: React.FC<GraphUsersGenericProps> = (props) => {
: null;

// Second layer
showIds?.push(
...props.edges
.filter((e) => showIds.includes(e.source) || showIds.includes(e.target))
.flatMap((edge) => [edge.source, edge.target]),
);
// showIds?.push(
// ...props.edges
// .filter((e) => showIds.includes(e.source) || showIds.includes(e.target))
// .flatMap((edge) => [edge.source, edge.target]),
// );

// Data
const maxWeight = Math.max(...props.edges.map((x) => x.weight));
Expand Down

0 comments on commit c0dd844

Please sign in to comment.