{"id":15686375,"url":"https://github.com/maxdemarzi/power_grid","last_synced_at":"2025-07-26T19:09:58.090Z","repository":{"id":66288353,"uuid":"78173454","full_name":"maxdemarzi/power_grid","owner":"maxdemarzi","description":"Multi-Thread a Traversal to find the energization status of a power grid","archived":false,"fork":false,"pushed_at":"2018-05-06T17:38:21.000Z","size":16,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-17T08:53:11.936Z","etag":null,"topics":["multi-thread","neo4j","neo4j-database","neo4j-server","traversal"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/maxdemarzi.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}},"created_at":"2017-01-06T04:23:21.000Z","updated_at":"2022-07-11T17:27:54.000Z","dependencies_parsed_at":"2023-05-30T16:45:51.229Z","dependency_job_id":null,"html_url":"https://github.com/maxdemarzi/power_grid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxdemarzi/power_grid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdemarzi%2Fpower_grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdemarzi%2Fpower_grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdemarzi%2Fpower_grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdemarzi%2Fpower_grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxdemarzi","download_url":"https://codeload.github.com/maxdemarzi/power_grid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdemarzi%2Fpower_grid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267213511,"owners_count":24053912,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["multi-thread","neo4j","neo4j-database","neo4j-server","traversal"],"created_at":"2024-10-03T17:38:59.292Z","updated_at":"2025-07-26T19:09:58.003Z","avatar_url":"https://github.com/maxdemarzi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# power_grid\nMulti-Thread a Traversal to find the energization status of a power grid\n\nInstructions\n------------\n\n1. Build it:\n\n        mvn clean package\n\n2. Copy target/power-grid-1.0-SNAPSHOT.jar to the plugins/ directory of your Neo4j server.\n\n3. Download additional jars to the plugins/ directory of your Neo4j server.\n   \n        http://central.maven.org/maven2/org/roaringbitmap/RoaringBitmap/0.6.27/RoaringBitmap-0.6.27.jar\n\n4. Configure Neo4j by adding a line to conf/neo4j.conf on version \u003e= 3.0:\n\n        dbms.unmanaged_extension_classes=net.geirina=/v1\n\n5. Start Neo4j server.\n\n6. Check that the extension is installed correctly over HTTP:\n\n        :GET /v1/service/helloworld\n\n7. Warm up the database: \n\n        :GET /v1/service/warmup\n\n8. Run this command to add an index on Equipment(equipment_id):\n\n        :POST /v1/schema/create\n\n9. Run the command:\n\n        :POST /v1/energization/ {\"ids\":[\"1\"]}\n        \n10. Clear the results:\n          \n        :POST /v1/energization/clear\n\n9. Try the SPI version:\n\n        :POST /v1/energization/spi {\"ids\":[\"1\"]}\n        \n10. Clear the results:\n          \n        :POST /v1/energization/clear\n           \n           \n11. Try the streaming version:\n           \n        :POST /v1/energization/streaming {\"ids\":[\"1\"]}           \n        \n12. Clear it again and try the multi-threaded version:\n          \n        :POST /v1/energization/clear\n        :POST /v1/energization/multi {\"ids\":[\"1\"]}\n                           \n13. Performance Testing:\n\n\n        curl -u neo4j:swordfish -w \"@format.txt\" -o /dev/null -s -H \"Content-Type: application/json\" -X POST -d '{ \"ids\" : [\"1\"]}' http://localhost:7474/v1/energization\n        curl -u neo4j:swordfish -H \"Content-Type: application/json\" -X POST http://localhost:7474/v1/energization/clear\n        curl -u neo4j:swordfish -w \"@format.txt\" -o /dev/null -s -H \"Content-Type: application/json\" -X POST -d '{ \"ids\" : [\"1\"]}' http://localhost:7474/v1/energization/spi\n        curl -u neo4j:swordfish -H \"Content-Type: application/json\" -X POST http://localhost:7474/v1/energization/clear\n        curl -u neo4j:swordfish -w \"@format.txt\" -o /dev/null -s -H \"Content-Type: application/json\" -X POST -d '{ \"ids\" : [\"1\"]}' http://localhost:7474/v1/energization/streaming\n        curl -u neo4j:swordfish -H \"Content-Type: application/json\" -X POST http://localhost:7474/v1/energization/clear\n        curl -u neo4j:swordfish -w \"@format.txt\" -o /dev/null -s -H \"Content-Type: application/json\" -X POST -d '{ \"ids\" : [\"1\"]}' http://localhost:7474/v1/energization/multi\n        ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxdemarzi%2Fpower_grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxdemarzi%2Fpower_grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxdemarzi%2Fpower_grid/lists"}