A unified framework for traditional and agent-based social network modeling