{
  "_id": "6a19ee321d7bb097a09c88bb",
  "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-05-29 19:44:56 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",
  "MD5sum": "3434dbe15110fae03b9f37cc33e19ab0",
  "_user": "cran",
  "_type": "src",
  "_file": "flownet_0.3.0.tar.gz",
  "_fileid": "c7f9719906626fef362615550a144b1ed6643be393757ef6a7a3c1e37dce969a",
  "_filesize": 3462428,
  "_sha256": "c7f9719906626fef362615550a144b1ed6643be393757ef6a7a3c1e37dce969a",
  "_created": "2026-05-29T19:44:56.000Z",
  "_published": "2026-05-29T19:51:14.770Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78574950217,
      "time": 154,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7299650397"
    },
    {
      "job": 78574950289,
      "time": 193,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7299661596"
    },
    {
      "job": 78574950226,
      "time": 333,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299703823"
    },
    {
      "job": 78574950330,
      "time": 173,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299656015"
    },
    {
      "job": 78574270725,
      "time": 254,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299602921"
    },
    {
      "job": 78574950148,
      "time": 181,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299657844"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26658347079",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 474,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/flownet"
  },
  "_devurl": "https://github.com/sebkrantz/flownet",
  "_pkgdown": "https://sebkrantz.github.io/flownet/",
  "_searchresults": 14,
  "_topics": [
    "openmp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/flownet.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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",
    "MASS",
    "Matrix",
    "mirai",
    "nanonext",
    "pkgconfig",
    "prettyunits",
    "progress",
    "proxy",
    "R6",
    "Rcpp",
    "rlang",
    "s2",
    "sf",
    "units",
    "vctrs",
    "wk"
  ],
  "_sysdeps": [
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "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.5440680443502757,
  "_indexed": false,
  "_nocasepkg": "flownet",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://sebkrantz.r-universe.dev/flownet",
  "_previous": "0.2.2",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-05-29T19:47:19.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "43e17191d557542e4701c539ef78253b63d35cef74dd460f40dbf98b53ac6ef3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26658347079"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-05-29T19:47:48.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "a8fa435dd781dcac4ab1872c56808cc52bb87a1dba5c8de0e57ce49c4e8fd90d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26658347079"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-05-29T19:49:58.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "5c23a84c3ea7baa5c8712122dc7fb72330b421b1fd75530f9f1988e260af6dcd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26658347079"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-05-29T19:47:32.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "2e0080af5cc98f38b4cf619af0a542e9b6b2ec2e795008ddfed7518558194ac1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26658347079"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-05-29T19:48:17.000Z",
      "arch": "emscripten",
      "commit": "5c9841399847c957dc45544cf935e4b54b1e229b",
      "fileid": "9b64bb4ac0c4bc2f7462ba1c41fe62a907c7a11d52f60b600fecac0be43e5411",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26658347079"
    }
  ]
}