Skip to content

About

Selectoscope is a visual tool that lets you explore network structure through linked interpretable views. Select nodes and/or edges from the visual pattern in one pane to examine the same selection set in other panes.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

SELECTOSCOPE

Selectoscope is a visual tool that lets you explore network structure through linked interpretable views. Select nodes and/or edges from the visual pattern in one pane to examine the same selection set in other panes.

Quick start

The interface has three parts. The top control strip has selection set choice (node sets, edge sets, or both), a report of selection counts, choice of brush modality, and controls that grow or shrink sets. Then the main section is composed of horizontally juxtaposed panes that show the same network dataset in various ways, surfacing different yet interpretable visual patterns. Finally, the bottom control strip is dynamic, changing the controls offered in response to the focused pane.

Consider these steps as a quick start:

  1. Change the loaded data from the DATA pane, which can be toggled back from this HELP pane by clicking the ? button.
  2. Drag in any pane to brush a selection area around a visual pattern that catches your eye.
  3. Then look across to other panes, the same nodes highlight with blue and edges with orange, wherever they sit in their respective visual patterns.
  4. Click ▲ in EXTEND SET to grow your selection by one hop, and see how far the selection spreads.
  5. Hover the SELECTION COUNT in the top control strip and click CLEAR to start over, or lasso an empty region in any pane.
  6. Run AUTO SWEEP at the bottom control strip to scan an animated selection band area across the vertical span of the pane, then watch the selection across every other pane.

Panes

Each pane draws the same loaded network in its own way.

Labels. One row per node, where rows selected are automatically sorted to the top for visibility, once the pointer leaves the list.

NodeLink. All datasets can be shown with a standard force-directed 2D layout, seeded by the first two harmonics of the spectral eigendecomposition (see MATRIX PANE description below). Similarly, a force-directed 3D layout, seeded by the first three harmonics, can be computed on demand. Additionally, datasets can have their own bespoke layouts, shown with BESPOKE 2D and BESPOKE 3D when available.

Matrix. The visual idiom is the classic Adjacency Matrix, where edges are points, and their respective nodes drawn as lines along rows and columns. By default the matrix is shown as a DIAMOND with the diagonal running vertically, though the traditional SQUARE view is also available.

Shells. This pane shows how density varies within the graph. Density is a measure of edge saturation, or how connected a group of nodes are to each other, from sparse (least density) to complete (most density). A new visual idiom we call kSnakes, where nodes are points that are vertically placed according to k-core shell membership (reported as text on the right side of the pane), which maps height to the depth into the graph's dense core. Nodes in the densest core are at the top, while nodes in the sparse periphery are at the bottom. Within each k-core shell, the onion decomposition (numbers on the left) sets every node's height, which creates snake-like visual patterns. Node points are drawn within an enclosure if they are part of the same connected component within that k-core shell.

Hops. This pane shows how eccentricity varies within the graph. Eccentricity is the distance in hops a given node is from its furthest reachable nodes, from central nodes (low eccentricity) to peripheral nodes (high eccentricity). Shown is a new visual idiom we call HopCensus, where each node is visually encoded by a polyline. A polyline is drawn from a vector of integers in a shared coordinate system: stubs (edge ends) met for the first time at each hop from the node, starting from its degree at hop 0, until the whole graph is traversed. The shape of the polyline comes from the varying stub counts, while the traversal extent in hops maps to the length of polyline, or the node's eccentricity (reported as text on the right side of the pane). Locally, polylines are drawn within a unit square, all share the same vertical scale; the tallest and longest set the relative extremes within the unit square. In the overall vertical span of the pane, the most central nodes are at the top (shortest polyline lengths, the radius nodes), while the nodes on the graph's perimeter are at the bottom (longest polyline lengths, the diameter endpoint nodes).

Using your own data

Click the +NEW row at the top of the DATA pane to add your own network data.

Choose BUILD FROM CSV to create a dataset from an edgelist, or UPLOAD FROM JSON to open a previously built and exported SELECTOSCOPE dataset. All processing happens in your browser, and your files never leave it. Selectoscope supports up to 10,000 nodes and 100,000 edges.

To build a dataset, the main file format is the EDGELIST, a CSV file with 'source' and 'target' columns, with one edge per row. Column names can be in any case. For example, 'Source' reads as 'source'. Nodes must match across CSVs under a 'node_id' column, where values are treated as plain trimmed strings. For example, "1" and "01" count as different 'node_id' entries. The 'node_id' strings can be any text, but must match exactly across EDGELIST, LABELS, BESPOKE 2D, and BESPOKE 3D files to build correctly.

Selectoscope automatically cleans the EDGELIST information: edge direction is ignored, self-loops are removed, duplicate edges are merged, and only the largest connected component is kept. Click ADD to build.

Per dataset built through CSV, optional files must use the 'node_id' column and match the EDGELIST. There are three optional CSV files to upload. The BESPOKE 2D layout requires 'node_id', 'x', and 'y' columns, and BESPOKE 3D requires 'node_id', 'x', 'y', and 'z' columns, both of which must account for every node in EDGELIST. The LABELS requires 'node_id' and 'label' columns. In contrast to the bespoke layouts, labels can be partial.

Once built, the options in CHANGE can add, replace, or remove files. Click EXPORT CSVS to save the built CSV files, or click EXPORT JSON to save a built dataset as a single file. Reopen the dataset through +NEW and UPLOAD FROM JSON, without rebuilding.

The curated datasets are already built and ready to use.

Development Setup

These steps assume that npm is already installed on your machine. This repository does not store or track the required web app scaffolding dependencies (Node 24), so the first step is to navigate to the SELECTOSCOPE working directory in your terminal and install these locally.

# Install the dependencies required for the project from package.json and package-lock.json
npm install

Then, run the following commands.

# Start the development server (run once per work session)
npm run dev

# Build the project for production deployment
npm run build

Git Cheatsheet

Step 0 -- Download the repo through the Command Line Interface (CLI).

cd src
gh repo clone dirediredock/SELECTOSCOPE
cd SELECTOSCOPE

Step 1 -- Use checkout -b to create and name a new branch.

git status
git checkout -b your_local_edits
git status

Step 2 -- When work of the day is complete, commit all changes on VS Code, then return to Terminal and push the commits, then finally return to main for a fresh start next time.

git push
git push --set-upstream origin your_local_edits
git fetch origin main:main
git checkout main

Curated dataset sources and their licenses are in docs/data_sources.md. The MIT license covers the code; each dataset stays under its source's terms.

About

Selectoscope is a visual tool that lets you explore network structure through linked interpretable views. Select nodes and/or edges from the visual pattern in one pane to examine the same selection set in other panes.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages