{
  "_id": "6acf6e83e2d863f6629520a3",
  "Package": "flownet",
  "Type": "Package",
  "Title": "Transport Modeling: Network Processing, Route Enumeration, and\nTraffic Assignment",
  "Version": "0.3.0",
  "Authors@R": "c(person(\"Sebastian\", \"Krantz\", email = \"sebastian.krantz@graduateinstitute.ch\", role = c(\"aut\", \"cre\")),\nperson(\"Kamol\", \"Roy\", role = \"ctb\"))",
  "Description": "High-performance tools for transport modeling - network\nprocessing, route enumeration, and traffic assignment in R. The\npackage implements the Path-Sized Logit model for traffic\nassignment - Ben-Akiva and Bierlaire (1999)\n<doi:10.1007/978-1-4615-5203-1_2> - an efficient route\nenumeration algorithm, and provides powerful utility functions\nfor (multimodal) network generation, consolidation/contraction,\nand/or simplification. The user is expected to provide a\ntransport network (either a graph or collection of linestrings)\nand an origin-destination (OD) matrix of trade/traffic flows.\nMaintained by transport consultants at CPCS (cpcs.ca).",
  "URL": "https://sebkrantz.github.io/flownet/,\nhttps://github.com/SebKrantz/flownet",
  "BugReports": "https://github.com/SebKrantz/flownet/issues",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "NeedsCompilation": "yes",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Packaged": {
    "Date": "2026-10-14 11:53:26 UTC",
    "User": "root"
  },
  "Author": "Sebastian Krantz [aut, cre], Kamol Roy [ctb]",
  "Maintainer": "Sebastian Krantz <sebastian.krantz@graduateinstitute.ch>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-05-29 14:50:02 UTC",
  "RemoteUrl": "https://github.com/cran/flownet",
  "RemoteRef": "HEAD",
  "RemoteSha": "5c9841399847c957dc45544cf935e4b54b1e229b",
  "_user": "cran",
  "_type": "src",
  "_file": "flownet_0.3.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/2fcbf833a8ef81a17678493e40583fc380ae4cb1ff214bc8da62a148ec5967f4",
  "_filesize": 3114867,
  "_sha256": "2fcbf833a8ef81a17678493e40583fc380ae4cb1ff214bc8da62a148ec5967f4",
  "_expires": "2027-01-22T11:58:57.000Z",
  "_created": "2026-10-14T11:53:26.000Z",
  "_published": "2026-10-14T11:58:59.463Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/38559265513",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115837871913,
      "time": 142,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11891293249"
    },
    {
      "job": 115837871771,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11891683182"
    },
    {
      "job": 115837871755,
      "time": 158,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11891283386"
    },
    {
      "job": 115837871968,
      "time": 155,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11890819145"
    },
    {
      "job": 115836142119,
      "time": 258,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11890938423"
    },
    {
      "job": 115837871842,
      "time": 183,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11890969104"
    },
    {
      "job": 115837872045,
      "time": 271,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11891468682"
    },
    {
      "job": 115837871952,
      "time": 165,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11891278307"
    },
    {
      "job": 115837871894,
      "time": 286,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11891104345"
    },
    {
      "job": 115837871835,
      "time": 124,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11891777940"
    }
  ],
  "_upstream": "https://github.com/cran/flownet",
  "_commit": {
    "id": "5c9841399847c957dc45544cf935e4b54b1e229b",
    "author": "Sebastian Krantz <sebastian.krantz@graduateinstitute.ch>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.3.0\n",
    "time": 1780066202
  },
  "_maintainer": {
    "name": "Sebastian Krantz",
    "email": "sebastian.krantz@graduateinstitute.ch",
    "login": "sebkrantz",
    "mastodon": "@sebkrantz@fosstodon.org",
    "bluesky": "@sebkrantz.bsky.social",
    "description": "Economist and Software Engineer",
    "uuid": 48053842
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "collapse",
      "version": ">= 2.1.5",
      "role": "Imports"
    },
    {
      "package": "kit",
      "version": ">= 0.0.21",
      "role": "Imports"
    },
    {
      "package": "sf",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "version": ">= 2.1.4",
      "role": "Imports"
    },
    {
      "package": "geodist",
      "version": ">= 0.1.1",
      "role": "Imports"
    },
    {
      "package": "leaderCluster",
      "version": ">= 1.5.0",
      "role": "Imports"
    },
    {
      "package": "mirai",
      "version": ">= 2.5.2",
      "role": "Imports"
    },
    {
      "package": "progress",
      "version": ">= 1.2.3",
      "role": "Imports"
    },
    {
      "package": "dbscan",
      "role": "Suggests"
    },
    {
      "package": "fastverse",
      "version": ">= 0.3.4",
      "role": "Suggests"
    },
    {
      "package": "mapview",
      "version": ">= 2.11.2",
      "role": "Suggests"
    },
    {
      "package": "RANN",
      "role": "Suggests"
    },
    {
      "package": "tmap",
      "version": ">= 4.0",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-06",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-12",
      "n": 1
    },
    {
      "week": "2026-22",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.1",
      "date": "2026-01-27"
    },
    {
      "name": "0.1.2",
      "date": "2026-02-03"
    },
    {
      "name": "0.2.1",
      "date": "2026-02-22"
    },
    {
      "name": "0.2.2",
      "date": "2026-03-22"
    },
    {
      "name": "0.3.0",
      "date": "2026-05-29"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "sebkrantz",
      "count": 5,
      "uuid": 48053842
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 381,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/flownet"
  },
  "_devurl": "https://github.com/sebkrantz/flownet",
  "_pkgdown": "https://sebkrantz.github.io/flownet/",
  "_searchresults": 16,
  "_topics": [
    "openmp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/flownet.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/sebkrantz/flownet",
  "_realowner": "sebkrantz",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2026-01-27"
    },
    {
      "version": "0.1.2",
      "date": "2026-02-03"
    },
    {
      "version": "0.2.1",
      "date": "2026-02-22"
    },
    {
      "version": "0.2.2",
      "date": "2026-03-22"
    },
    {
      "version": "0.3.0",
      "date": "2026-05-29"
    }
  ],
  "_exports": [
    "consolidate_graph",
    "create_undirected_graph",
    "critical_link_analysis",
    "distances_from_graph",
    "linestrings_from_graph",
    "linestrings_to_graph",
    "melt_od_matrix",
    "nodes_from_graph",
    "normalize_graph",
    "run_assignment",
    "simplify_network"
  ],
  "_datasets": [
    {
      "name": "africa_cities_ports",
      "title": "African Cities and International Ports",
      "object": "africa_cities_ports",
      "class": [
        "sf",
        "data.table",
        "data.frame"
      ],
      "fields": [
        "city_country",
        "city",
        "country",
        "iso2",
        "iso3",
        "admin_name",
        "capital",
        "population",
        "port_locode",
        "port_name",
        "port_status",
        "outflows",
        "geometry"
      ],
      "rows": 453,
      "table": true,
      "tojson": true
    },
    {
      "name": "africa_network",
      "title": "Trans-African Road Transport Network",
      "object": "africa_network",
      "class": [
        "sf",
        "data.frame"
      ],
      "fields": [
        "from",
        "to",
        "from_ctry",
        "to_ctry",
        "FX",
        "FY",
        "TX",
        "TY",
        "sp_distance",
        "distance",
        "duration",
        "speed_kmh",
        "passes",
        "gravity",
        "gravity_rd",
        "border_dist",
        "total_dist",
        "border_time",
        "total_time",
        "duration_100kmh",
        "total_time_100kmh",
        "rugg",
        "pop_wpop",
        "pop_wpop_km2",
        "cost_km",
        "upgrade_cat",
        "ug_cost_km",
        "add",
        "geometry"
      ],
      "rows": 2825,
      "table": true,
      "tojson": true
    },
    {
      "name": "africa_segments",
      "title": "Raw Network Segments for Trans-African Transport Network",
      "object": "africa_segments",
      "class": [
        "data.frame"
      ],
      "fields": [
        "FX",
        "FY",
        "TX",
        "TY",
        "passes",
        "gravity",
        "gravity_rd"
      ],
      "rows": 14358,
      "table": true,
      "tojson": true
    },
    {
      "name": "africa_trade",
      "title": "Intra-African Trade Flows by HS Section",
      "object": "africa_trade",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "iso3_o",
        "iso3_d",
        "section_code",
        "section_name",
        "hs2_codes",
        "value",
        "value_kd",
        "quantity"
      ],
      "rows": 27721,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "flownet-package",
      "title": "Efficient Transport Modeling",
      "topics": [
        "flownet-package",
        "flownet"
      ]
    },
    {
      "page": "africa_cities_ports",
      "title": "African Cities and International Ports",
      "topics": [
        "africa_cities_ports"
      ]
    },
    {
      "page": "africa_network",
      "title": "Trans-African Road Transport Network",
      "topics": [
        "africa_network"
      ]
    },
    {
      "page": "africa_segments",
      "title": "Raw Network Segments for Trans-African Transport Network",
      "topics": [
        "africa_segments"
      ]
    },
    {
      "page": "africa_trade",
      "title": "Intra-African Trade Flows by HS Section",
      "topics": [
        "africa_trade"
      ]
    },
    {
      "page": "consolidate_graph",
      "title": "Consolidate Graph",
      "topics": [
        "consolidate_graph"
      ]
    },
    {
      "page": "create_undirected_graph",
      "title": "Create Undirected Graph",
      "topics": [
        "create_undirected_graph"
      ]
    },
    {
      "page": "critical_link_analysis",
      "title": "Critical Link Analysis",
      "topics": [
        "critical_link_analysis"
      ]
    },
    {
      "page": "distances_from_graph",
      "title": "Compute Distance Matrix from Graph",
      "topics": [
        "distances_from_graph"
      ]
    },
    {
      "page": "linestrings_from_graph",
      "title": "Convert Graph to Linestrings",
      "topics": [
        "linestrings_from_graph"
      ]
    },
    {
      "page": "linestrings_to_graph",
      "title": "Convert Linestring to Graph",
      "topics": [
        "linestrings_to_graph"
      ]
    },
    {
      "page": "melt_od_matrix",
      "title": "Melt Origin-Destination Matrix to Long Format",
      "topics": [
        "melt_od_matrix"
      ]
    },
    {
      "page": "nodes_from_graph",
      "title": "Extract Nodes from Graph",
      "topics": [
        "nodes_from_graph"
      ]
    },
    {
      "page": "normalize_graph",
      "title": "Normalize Graph Node IDs",
      "topics": [
        "normalize_graph"
      ]
    },
    {
      "page": "run_assignment",
      "title": "Run Traffic Assignment",
      "topics": [
        "print.flownet",
        "run_assignment"
      ]
    },
    {
      "page": "simplify_network",
      "title": "Simplify Network",
      "topics": [
        "simplify_network"
      ]
    }
  ],
  "_readme": "https://github.com/cran/flownet/raw/HEAD/README.md",
  "_rundeps": [
    "class",
    "classInt",
    "cli",
    "collapse",
    "cpp11",
    "crayon",
    "DBI",
    "e1071",
    "geodist",
    "glue",
    "hms",
    "igraph",
    "KernSmooth",
    "kit",
    "lattice",
    "leaderCluster",
    "lifecycle",
    "magrittr",
    "Matrix",
    "mirai",
    "nanonext",
    "pkgconfig",
    "prettyunits",
    "progress",
    "proxy",
    "R6",
    "Rcpp",
    "rlang",
    "s2",
    "sf",
    "units",
    "vctrs",
    "wk"
  ],
  "_sysdeps": [
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction to flownet",
      "author": "Sebastian Krantz",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Getting Started",
        "Basic Workflow Example",
        "Step 1: Visualize the Network",
        "Step 2: Convert Network to Graph",
        "Step 3: Extract Nodes and Map Cities",
        "Step 4: Create OD Matrix",
        "Step 5: Run Traffic Assignment",
        "Step 6: Visualize Results",
        "Advanced Workflow: Trade Flow Disaggregation",
        "Step 1: Compute City Population Shares",
        "Step 2: Disaggregate Trade Flows",
        "Step 3: Run Assignment with Trade Flows",
        "Advanced Workflow with Network Consolidation",
        "Using Raw Segments",
        "Consolidate Graph",
        "Compare Original vs Consolidated Network",
        "Network Simplification with simplify_network()",
        "Shortest-Paths Method",
        "Cluster Method",
        "Key Concepts and Functions",
        "Path-Sized Logit Model",
        "Probability Formula",
        "The Correction Term: Path-Size Factor ($PS_k$)",
        "Network Processing Functions",
        "Graph Utilities",
        "OD Matrix Utilities",
        "Traffic Assignment",
        "Parameter Tuning Tips",
        "Conclusion",
        "Next Steps",
        "References"
      ],
      "created": "2026-01-27 21:40:02",
      "modified": "2026-02-22 23:45:00",
      "commits": 3
    }
  ],
  "_score": 3.6020599913279625,
  "_indexed": false,
  "_nocasepkg": "flownet",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://sebkrantz.r-universe.dev/flownet",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-14T11:55:37.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "https://r2.ropensci.org/1a92dfab843f6b5defaa8c67f639e3bec45c109140c23458af0ea2922049c9b5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38559265513"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-14T11:55:58.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "https://r2.ropensci.org/c44109e5939ebebe5126352c97d3f5122b1826114108f4aa37747aba658cfd63",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38559265513"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-14T11:55:58.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "https://r2.ropensci.org/fb99cf6347a51798732a81ec3112c3c135b98ec2ee3b650495ff80b7774c35f4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38559265513"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-14T11:55:48.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "https://r2.ropensci.org/5e5136051902ea21ba8291cfb3838efb4781e127360db217a3399330ed3b755e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38559265513"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-10-14T11:56:45.000Z",
      "arch": "emscripten",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "https://r2.ropensci.org/103e54fcf479c65222c0c3b7bfb2ef1c970fc8a527f816f7318a93a5ccb48340",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38559265513"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-14T11:57:28.000Z",
      "arch": "aarch64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "https://r2.ropensci.org/7d08c8545dacb20120a3b228b48e961d30821080f1b4f7cc23512ebe2058befe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38559265513"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-14T11:55:00.000Z",
      "arch": "x86_64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "https://r2.ropensci.org/d40291bd8bdb1e24087dbf9ca8d257c4153c651a256cdf3720353faf9f6608ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38559265513"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-14T11:57:45.000Z",
      "arch": "aarch64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "https://r2.ropensci.org/9d38febdbc016b3fa5d246a4565230addbbb24e68edde4525c1345438b949b03",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38559265513"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-14T11:54:53.000Z",
      "arch": "x86_64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "https://r2.ropensci.org/d75441a2021a66d217f606a11d4b89a77ff469ffa48b34685fd17c451d38dcdb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38559265513"
    }
  ]
}