{"id":25923857,"url":"https://github.com/jfb-h/blockmodelutils.jl","last_synced_at":"2026-05-31T01:31:03.114Z","repository":{"id":279090756,"uuid":"937693636","full_name":"jfb-h/BlockmodelUtils.jl","owner":"jfb-h","description":"Julia package for representing and plotting network blockmodels","archived":false,"fork":false,"pushed_at":"2025-02-26T19:48:07.000Z","size":237,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T20:29:17.161Z","etag":null,"topics":["blockmodeling","julia","network-analysis"],"latest_commit_sha":null,"homepage":"https://jfb-h.github.io/BlockmodelUtils.jl/","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jfb-h.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-23T17:22:15.000Z","updated_at":"2025-02-26T19:54:22.000Z","dependencies_parsed_at":"2025-02-26T20:39:27.284Z","dependency_job_id":null,"html_url":"https://github.com/jfb-h/BlockmodelUtils.jl","commit_stats":null,"previous_names":["jfb-h/blockmodels.jl","jfb-h/blockmodelutils.jl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfb-h%2FBlockmodelUtils.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfb-h%2FBlockmodelUtils.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfb-h%2FBlockmodelUtils.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfb-h%2FBlockmodelUtils.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfb-h","download_url":"https://codeload.github.com/jfb-h/BlockmodelUtils.jl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241705919,"owners_count":20006399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockmodeling","julia","network-analysis"],"created_at":"2025-03-03T17:18:25.210Z","updated_at":"2026-05-31T01:31:03.108Z","avatar_url":"https://github.com/jfb-h.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlockmodelUtils.jl\n\n[![Stable Documentation](https://img.shields.io/badge/docs-stable-blue.svg)](https://jfb-h.github.io/BlockmodelUtils.jl/stable)\n[![In development documentation](https://img.shields.io/badge/docs-dev-blue.svg)](https://jfb-h.github.io/BlockmodelUtils.jl/dev)\n[![Build Status](https://github.com/jfb-h/BlockmodelUtils.jl/workflows/Test/badge.svg)](https://github.com/jfb-h/BlockmodelUtils.jl/actions)\n[![Test workflow status](https://github.com/jfb-h/BlockmodelUtils.jl/actions/workflows/Test.yml/badge.svg?branch=main)](https://github.com/jfb-h/BlockmodelUtils.jl/actions/workflows/Test.yml?query=branch%3Amain)\n[![Docs workflow Status](https://github.com/jfb-h/BlockmodelUtils.jl/actions/workflows/Docs.yml/badge.svg?branch=main)](https://github.com/jfb-h/BlockmodelUtils.jl/actions/workflows/Docs.yml?query=branch%3Amain)\n[![Coverage](https://codecov.io/gh/jfb-h/BlockmodelUtils.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/jfb-h/BlockmodelUtils.jl)\n[![BestieTemplate](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/JuliaBesties/BestieTemplate.jl/main/docs/src/assets/badge.json)](https://github.com/JuliaBesties/BestieTemplate.jl)\n\nRepresent, analyse, and plot [network blockmodels](https://en.wikipedia.org/wiki/Blockmodeling), i.e., blocked graph adjacency matrices based on some node partition. As of now, this package does *not* contain functionality to infer node partitions (i.e., clusters or equivalence-based) from network structure. Its main purpose is instead to provide a simple representation of blockmodels and some plotting utilities.\n\n# Getting started\n\nFor a graph `g` and a vector of group labels `groups`, create a blockmodel with the `blockmodel` function:\n\n```julia\nusing Graphs, BlockmodelUtils\n\nn = 20\ng = erdos_renyi(n, 0.1)\ngroups = rand('a':'d', n)\n\nbm = blockmodel(g, groups)\n```\n\nThe resulting `Blockmodel` prints the blockdensity matrix:\n\n```julia-repl\nBlockmodel{Int64, SimpleGraph{Int64}}\n4 groups with sizes [6, 7, 4, 3]\n┌───┬───────┬───────┬───────┬───────┐\n│   │     1 │     2 │     3 │     4 │\n├───┼───────┼───────┼───────┼───────┤\n│ a │ 0.200 │ 0.214 │ 0.250 │ 0.278 │\n├───┼───────┼───────┼───────┼───────┤\n│ b │ 0.214 │ 0.095 │ 0.179 │ 0.286 │\n├───┼───────┼───────┼───────┼───────┤\n│ c │ 0.250 │ 0.179 │ 0.167 │ 0.083 │\n├───┼───────┼───────┼───────┼───────┤\n│ d │ 0.278 │ 0.286 │ 0.083 │ 0.000 │\n└───┴───────┴───────┴───────┴───────┘\n```\n\n\n## How to Cite\n\nIf you use BlockmodelUtils.jl in your work, please cite using the reference given in [CITATION.cff](https://github.com/jfb-h/BlockmodelUtils.jl/blob/main/CITATION.cff).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfb-h%2Fblockmodelutils.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfb-h%2Fblockmodelutils.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfb-h%2Fblockmodelutils.jl/lists"}