Modeling Social Networks through User Background and Behavior