Creating a network model with embedding