EnglishFrenchSpanish

OnWorks favicon

dijkstra - Online in the Cloud

Run dijkstra in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command dijkstra that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


dijkstra - single-source distance filter

SYNOPSIS


dijkstra [ -adp? ] [ sourcenode file ]

DESCRIPTION


dijkstra reads a stream of graphs and for each computes the distance of every node from
sourcenode. Edge length is given in the len attribute, and the default is 1. The dist
attribute of every node is set to its distance from sourcenode. If the -p flag is used,
the prev attribute of each node reachable from sourcenode is set to the name of the
previous node on a shortest path. The graph attribute maxdist is set to the maximum dist
of all nodes in the graph.

If the -d flag is used, the graph is treated as directed and only forward edges are used.

By default, if the graph is disconnected, the dist attribute of nodes unreachable from
sourcenode are left untouched, and maxdist is set to the maximum of any previous value and
the largest distance recorded in this run. On the other hand, if the -a flag is used, the
dist attribute of an unreachable node is assigned a very large value, and maxdist records
the maximum distance found in the component containing sourcenode.

Any number of sourcenode file pairs may be given. If the last file is missing, stdin is
used. All output is written to stdout.

In a typical application, dist and maxdist can drive a downstream calculation of color or
some other attribute.

Use dijkstra online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OfficeFloor
    OfficeFloor
    OfficeFloor provides inversion of
    coupling control, with its: - dependency
    injection - continuation injection -
    thread injection For more information
    visit the...
    Download OfficeFloor
  • 2
    DivKit
    DivKit
    DivKit is an open source Server-Driven
    UI (SDUI) framework. It allows you to
    roll out server-sourced updates to
    different app versions. Also, it can be
    used fo...
    Download DivKit
  • 3
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 4
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 5
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • 6
    Stacer
    Stacer
    Linux System Optimizer and Monitoring
    Github Repository:
    https://github.com/oguzhaninan/Stacer.
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • More »

Linux commands

Ad