TORONTO — The man identified as the van driver who traumatized Toronto was a socially troubled computer studies graduate who posted a hostile message toward women on Facebook moments before his deadly rampage, according to accounts by the police and his acquaintances on Tuesday.

The suspect, Alek Minassian, 25, was charged in a Toronto court with 10 counts of first degree murder and 13 counts of attempted murder one day after the van rampage along the sidewalk of a busy Toronto street.

The police have said that Mr. Minassian, who lived in the Toronto suburb of Richmond Hill, intentionally struck the victims in what was likely to count as Canada’s deadliest vehicular assault.

Government officials have said the attack did not appear to be an act of terrorism but have not ruled it out.