Add Homophilic Network Generation to NetworkManager Role in NetworkEnvironment Agent
Description
We need to extend the NetworkManager role of the NetworkEnvironment agent to support generation of homophilic (or homophile) networks.
Tasks
-
Add support for homophilic network generation based on a specified homophily parameter (e.g., using attribute similarity). -
Ensure integration with existing network generation interfaces. -
Allow users to configure homophily strength and relevant node attributes. -
Provide unit tests for the new functionality. -
Update documentation and examples to reflect the new feature.
Acceptance Criteria
- A user can generate a homophilic network by specifying relevant parameters.
- The generated network exhibits expected homophily patterns (e.g., nodes with similar attributes are more likely to be connected).
- All new code is covered by tests and documented.
Notes
Consider using established algorithms or methods such as those based on assortativity or attribute-based preferential attachment.