{"id":17358670,"url":"https://github.com/babak2/ev-brokerage","last_synced_at":"2026-02-03T02:33:29.708Z","repository":{"id":172008079,"uuid":"226583690","full_name":"babak2/EV-brokerage","owner":"babak2","description":"Everett \u0026 Valente brokerage scores for directed \u0026 undirected graphs","archived":false,"fork":false,"pushed_at":"2024-07-15T17:51:06.000Z","size":2289,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T03:41:49.382Z","etag":null,"topics":["graph-measures","network-metrics","r","social-network-analysis","social-network-visualization"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/babak2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-12-07T22:24:54.000Z","updated_at":"2024-07-15T17:51:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"15d106aa-8c22-432a-b4cc-7c06fc8326ad","html_url":"https://github.com/babak2/EV-brokerage","commit_stats":null,"previous_names":["babak2/ev-brokerage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/babak2/EV-brokerage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FEV-brokerage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FEV-brokerage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FEV-brokerage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FEV-brokerage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babak2","download_url":"https://codeload.github.com/babak2/EV-brokerage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FEV-brokerage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29028677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T02:28:16.591Z","status":"ssl_error","status_checked_at":"2026-02-03T02:27:48.904Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["graph-measures","network-metrics","r","social-network-analysis","social-network-visualization"],"created_at":"2024-10-15T19:06:27.100Z","updated_at":"2026-02-03T02:33:29.690Z","avatar_url":"https://github.com/babak2.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EV Brokerage \n\nUsing betweenness centrality as an underpinning concept, *Everett and Valente (2016)* propose a new brokerage measure and explore its relationship to classic betweenness.\n\nThis package contains simple R code for calculating *Everett and Valente (2016)* brokerage scores for both undirected and directed graphs.\n\nFor more information about the brokerage measure, see: \n\n**Everett MG, Valente TW.** *Bridging, brokerage, and betweenness.* Social Networks. 2016; 44:202-208. DOI: [10.1016/j.socnet.2015.09.001](https://doi.org/10.1016/j.socnet.2015.09.001)\n\n\n## Installation\n\nClone the repository to your local machine:\n\n`git clone https://github.com/babak2/EV-brokerage.git`\n\nor if you have the program as a ZIP file, simply extract the zip file to a directory of your choice.\n\nChange your working directory to EV-brokerage:\n\n`cd EV-brokerage`\n\n## Program Requirements\n\nR or RStudio with the following libraries installed: \n`tidygraph`, `igraph`, `ggraph`\n\n\n# Usage\n\nOpen EV-brokerage.R in R or RStudio\n\n\n## Inputs/Parameters: \n\n`g`: a graph (of type igraph or tidygraph).\n\n`as.graph` (optional): By default, the result is returned as a data frame. To obtain the result as a graph, set as.graph to TRUE.\n\n`all.values` (optional): By default, it is set to FALSE. If set to TRUE, it will include all the other calculated values in addition to EV brokerage scores.\n\n`as.graph` (optional): By default, the results are returned as a DataFrame; if set to TRUE, the output will be returned as a graph.\n\n## Output/Returns: \n\nThe score as a DataFrame (by default) or as a graph if as.graph is set to TRUE.\n\nIf the original graph has original IDs (names), the results will include the original IDs (names).\n\n## Provided RDS data: \n\n`granovetter_graph.RDS`: This dataset contains the undirected graph of the Granovetter hypothetical network as shown in Figure 1 of Everett \u0026 Valente (2016) article\n\n![Granovetter network](./images/granovetter.png)\n\n`campnet_graph.RDS`: This dataset contains the directed graph of the Campnet hypothetical network as shown in Figure 3 of Everett \u0026 Valente (2016) article.\n\n![Campnet network](./images/campnet.png)\n\n## Examples:\n\ng \u003c- readRDS(\"granovetter_graph.RDS\") \n\ng \u003c- readRDS(\"campnet_graph.RDS\")     \n\nres.df \u003c- ev_brokerage(g)\n\n\nTo obtain the result as graph: \n\nres.g  \u003c- ev_brokerage(g, as.graph=TRUE)\n\n\nUse all.values=TRUE to include other calulated values in addition to EV brokerage scores:\n\nres.df  \u003c- ev_brokerage(g, all.values=TRUE) \n\n\n\nWith all.values=TRUE, you obtain the entire scores and other values (if IDs are included in the graph datasets). For example, for the Granovetter network case, this would be:\n\n![Granovetter scores](./images/table1.png)\n\n\nAnd for the Campnet network case, this would be:\n\n![Campnet scores](./images/table2.png)\n\n\n## License\n\nThis program is licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE for more information.\n\n\n## Author \n\nBabak Mahdavi Ardestani\n\nbabak.m.ardestani@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabak2%2Fev-brokerage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabak2%2Fev-brokerage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabak2%2Fev-brokerage/lists"}